public static MvcSphere GetMVCEntity(BLLSphere sphere)
 {
     return(new MvcSphere()
     {
         Id = sphere.Id,
         Name = sphere.Name,
         Level = sphere.Level,
         CategoryName = sphere.CategoryName
     });
 }
Beispiel #2
0
 public static DALSphere GetDALEntity(BLLSphere bllEntity)
 {
     return(new DALSphere()
     {
         Id = bllEntity.Id,
         Name = bllEntity.Name,
         Level = bllEntity.Level,
         CategoryName = bllEntity.CategoryName
     });
 }
Beispiel #3
0
 public void UpDate(BLLSphere sphere)
 {
     uow.Spheres.UpDate(SphereMapper.GetDALEntity(sphere));
     uow.Commit();
 }