public virtual void UpdateEntity(Database.Entities.Name entity) { entity.ArgumentNullCheck(nameof(entity)); entity.FirstName = FirstName; entity.LastName = LastName; entity.MiddleName = MiddleName; entity.Title = Title; entity.NickName = NickName; }
public NameViewModel(int id, Database.Entities.Name entity) : base(id) { entity.ArgumentNullCheck(nameof(entity)); Title = entity.Title; FirstName = entity.FirstName; MiddleName = entity.MiddleName; LastName = entity.LastName; NickName = entity.NickName; }
public virtual Database.Entities.Name CreateEntity() { var entity = new Database.Entities.Name() { FirstName = FirstName, LastName = LastName, Title = Title, MiddleName = MiddleName, NickName = NickName }; return(entity); }