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.
Verax_API_EF/Verax_API_EF/Verax_API_EF/API_Mapping/FormulaireMapping.cs

25 lines
514 B

using Model;
using Web_API.Model;
namespace API_Mapping;
public static class FormulaireMapping
{
public static FormulaireDTO ToDTO(this Formulaire? f) => new()
{
Id = f.Id,
Theme = f.Theme,
Date = f.Date,
Lien = f.Lien,
UserPseudo = f.UserPseudo
};
public static Formulaire ToModel(this FormulaireDTO f) => new()
{
Id = f.Id,
Theme = f.Theme,
Date = f.Date,
Lien = f.Lien,
UserPseudo = f.UserPseudo
};
}