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)); }
public void Add(District entity) { DistrictDAL dalObject = new DistrictDAL(); dalObject.Add(entity); }