You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
371 B
18 lines
371 B
using System;
|
|
using Model;
|
|
|
|
namespace WebApiLol.Converter
|
|
{
|
|
public static class RuneConverter
|
|
{
|
|
public static RuneDTO toDTO(this Rune rune) => new RuneDTO()
|
|
{
|
|
Name = rune.Name,
|
|
Description = rune.Description,
|
|
};
|
|
|
|
public static Rune toModel(this RuneDTO rune) => new Rune(rune.Name, rune.Description);
|
|
}
|
|
}
|
|
|