Beispiel #1
0
 public static Project.Client.Entities.Person Map(Lib.Person person) => new Project.Client.Entities.Person
 {
     Id        = person.Id,
     Email     = person.Email,
     Username  = person.Username,
     Password  = person.Password,
     Firstname = person.FirstName,
     Lastname  = person.LastName
 };
 //adds new user
 public int CreatePerson(Project.Domain.Person person)
 {
     _db.People.Add(Mapper.Map(person));
     return(Save());
 }