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 }); }
public void AddAccount(Library.Models.Account account) { Entities.Account newAccount = Mapper.Map(account); _dbContext.Add(newAccount); }