Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }