Exemple #1
0
        public ActionResult AddNewValue(AddMeterValueModel model)
        {
            var res = FunctionWithDB.AddNewValue(model);

            if (!string.IsNullOrEmpty(res))
            {
                return(PartialView("Error", "Переданные данные меньше необходимых значений"));
            }
            return(RedirectToAction("Index"));
        }
Exemple #2
0
        public ActionResult Filters()
        {
            var model = FunctionWithDB.DataForFilters();

            return(PartialView(model));
        }
Exemple #3
0
        public ActionResult ShowAllChange(int Id)
        {
            var model = FunctionWithDB.ShowAllChangeInOneAppartment(Id);

            return(PartialView(model));
        }
Exemple #4
0
        public ActionResult AddNewValue(int Id)
        {
            var model = FunctionWithDB.GetDataForAddNewValue(Id);

            return(PartialView(model));
        }
Exemple #5
0
 public ActionResult AddNewMeter(CreateMeterModel model)
 {
     FunctionWithDB.AddNewMeter(model);
     return(RedirectToAction("Index"));
 }
Exemple #6
0
 public ActionResult CreateNewAppartment(AppartmentCreateModel model)
 {
     FunctionWithDB.CreateNewAppartment(model);
     return(RedirectToAction("Index"));
 }
Exemple #7
0
        public ActionResult AppartmentList(FilterModel filter)
        {
            var model = FunctionWithDB.GetAllAppartmentsDataWithFilter(filter);

            return(PartialView(model));
        }
Exemple #8
0
        public JsonResult LoadHouseNumber(string street)
        {
            var result = FunctionWithDB.LoadHouseNumber(street);

            return(Json(result));
        }