public static Entities.Account Map(Library.Models.Account account)
 {
     return(new Entities.Account
     {
         Id = account.Id,
         Username = account.Username,
         Passphrase = account.Passphrase,
         FirstName = account.FirstName,
         LastName = account.LastName
     });
 }
示例#2
0
 public void AddAccount(Library.Models.Account account)
 {
     Entities.Account newAccount = Mapper.Map(account);
     _dbContext.Add(newAccount);
 }