public IActionResult Add(BillUpdateModel model)
 {
     model.AddBills();
     model.LoadTenant();
     ViewBag.Months = Enum.GetNames(typeof(Month));
     return(View(model));
 }
        //[HttpPost]
        //[ValidateAntiForgeryToken]
        public IActionResult Edit(int id)
        {
            var model = new BillUpdateModel();

            model.Load(id);
            return(View(model));
        }
        public IActionResult Add()
        {
            var model = new BillUpdateModel();

            model.LoadTenant();
            ViewBag.Months = Enum.GetNames(typeof(Month));
            return(View(model));
        }
 public IActionResult Edit(BillUpdateModel model)
 {
     if (ModelState.IsValid)
     {
         model.EditBill();
     }
     model.Load(model.Id);
     return(View(model));
 }