Exemple #1
0
        public ActionResult CreateDistrict(DistrictViewModel model)
        {
            DistrictDAL sgdal = new DistrictDAL();

            model.ID = Guid.NewGuid().ToString();
            sgdal.Add(model.CastDB(model));
            sgdal.AcceptAllChange();
            return(GetBaseResponse <DistrictViewModel>(true));
        }
Exemple #2
0
        public void Add(District entity)
        {
            DistrictDAL dalObject = new DistrictDAL();

            dalObject.Add(entity);
        }