Exemple #1
0
        public ActionResult EditGroup(string id)
        {
            SalesGroupDAL sgdal = new SalesGroupDAL();
            var           model = new SalesGroupViewModel();

            model = model.CastModel(sgdal.Get(id));
            return(View(model));
        }
Exemple #2
0
        public ActionResult DeleteGroup(string id)
        {
            SalesGroupDAL sgdal = new SalesGroupDAL();
            var           model = sgdal.Get(id);

            sgdal.Delete(model);
            sgdal.AcceptAllChange();
            return(GetBaseResponse <DistrictViewModel>(true));
        }
Exemple #3
0
 public SalesGroup Query(string id)
 {
     return(_salesGroup.Get(Guid.Parse(id)));
 }