Beispiel #1
0
 public static MvcProgrammer Map(BLLProgrammer prog)
 {
     return(new MvcProgrammer()
     {
         Id = prog.Id,
         Name = prog.Name,
         Surname = prog.Surname,
         Age = prog.Age,
         Salary = prog.Salary,
     });
 }
Beispiel #2
0
 public static DALProgrammer GetDALEntity(this BLLProgrammer bllEntity)
 {
     if (bllEntity == null)
     {
         return(null);
     }
     return(new DALProgrammer()
     {
         Id = bllEntity.Id,
         Name = bllEntity.Name,
         Surname = bllEntity.Surname,
         Age = bllEntity.Age,
         Salary = bllEntity.Salary,
     });
 }
Beispiel #3
0
 public void UpDate(BLLProgrammer prog)
 {
     uow.Programmers.UpDate(ProgrammerMapper.GetDALEntity(prog));
     uow.Commit();
 }