public ActionResult AddNewValue(AddMeterValueModel model) { var res = FunctionWithDB.AddNewValue(model); if (!string.IsNullOrEmpty(res)) { return(PartialView("Error", "Переданные данные меньше необходимых значений")); } return(RedirectToAction("Index")); }
public ActionResult Filters() { var model = FunctionWithDB.DataForFilters(); return(PartialView(model)); }
public ActionResult ShowAllChange(int Id) { var model = FunctionWithDB.ShowAllChangeInOneAppartment(Id); return(PartialView(model)); }
public ActionResult AddNewValue(int Id) { var model = FunctionWithDB.GetDataForAddNewValue(Id); return(PartialView(model)); }
public ActionResult AddNewMeter(CreateMeterModel model) { FunctionWithDB.AddNewMeter(model); return(RedirectToAction("Index")); }
public ActionResult CreateNewAppartment(AppartmentCreateModel model) { FunctionWithDB.CreateNewAppartment(model); return(RedirectToAction("Index")); }
public ActionResult AppartmentList(FilterModel filter) { var model = FunctionWithDB.GetAllAppartmentsDataWithFilter(filter); return(PartialView(model)); }
public JsonResult LoadHouseNumber(string street) { var result = FunctionWithDB.LoadHouseNumber(street); return(Json(result)); }