public ActionResult GenerateCAbatiment() { IBatimentService kk55 = new BatimentService(); double maxj = kk55.FindMaxIDBat(); maxj = maxj + 1; double jj = 4500000000000; double kk = jj + maxj; return Json(kk); }
public ActionResult GetBatiemntByDelegation(int stateid) { IBatimentService bat = new BatimentService(); List<Batiment> objcity = new List<Batiment>(); objcity = bat.FindBatimentByDelgation(stateid).ToList(); SelectList obgcity = new SelectList(objcity, "idBatiment", "description", 0); return Json(obgcity); }