public ActionResult EditGroup(string id) { SalesGroupDAL sgdal = new SalesGroupDAL(); var model = new SalesGroupViewModel(); model = model.CastModel(sgdal.Get(id)); return(View(model)); }
public ActionResult DeleteGroup(string id) { SalesGroupDAL sgdal = new SalesGroupDAL(); var model = sgdal.Get(id); sgdal.Delete(model); sgdal.AcceptAllChange(); return(GetBaseResponse <DistrictViewModel>(true)); }
public SalesGroup Query(string id) { return(_salesGroup.Get(Guid.Parse(id))); }