public ActionResult Edit(int id) { SetupFloorProviders SFloorPro = new SetupFloorProviders(); SetupFloorModel model = new SetupFloorModel(); model = SFloorPro.GetList().Where(x => x.FloorId == id).FirstOrDefault(); return(View(model)); }
// // GET: /SetupFloor/ //public ActionResult Index() //{ // return View(); //} public ActionResult Index() { SetupFloorProviders SFloorPro = new SetupFloorProviders(); SetupFloorModel model = new SetupFloorModel(); model.SetupFloorModelList = SFloorPro.GetList(); return(View(model)); }