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