Ejemplo n.º 1
0
 public Staff Create(StaffModel model)
 {
     return(new Staff
     {
         Name = model.Name,
         Department = model.Department,
         DOB = model.DOB,
         Address = model.Address,
         CreatedBy = model.CreatedBy,
         CreatedDate = DateTime.Now,
         ModifiedDate = DateTime.Now
     });
 }
Ejemplo n.º 2
0
 public Staff Edit(Staff entity, StaffModel model)
 {
     entity.StaffId    = model.StaffId;
     entity.Name       = model.Name;
     entity.Department = model.Department;
     entity.DOB        = model.DOB;
     entity.Address    = model.Address;
     entity.ModifiedBy = model.ModifiedBy;
     //entity.CreatedBy = model.CreatedBy;
     entity.ModifiedDate = DateTime.Now;
     //entity.CreatedDate = DateTime.Now;
     return(entity);
 }
Ejemplo n.º 3
0
 public ProjectModel(Project project)
 {
     this.Assign(project);
     Staff = new StaffModel();
 }