/// <summary> /// Action Method to display a form to update the hostel fees /// </summary> /// <param name="userInput"> the serach query as input by the user</param> /// <returns>Partial View</returns> public ActionResult ChangeFees(SearchViewModel userInput) { TransactionHelper helper = new TransactionHelper(); HostelChargesViewModel model = helper.ConstructViewModelForHostelFeeChange(userInput); TempData["canRentChange"] = helper.CanChangeRent(userInput.hostelType, userInput.roomType); TempData["canFixChange"] = helper.CanChangeFix(userInput.hostelType, userInput.roomType); TempData["canDepositChange"] = helper.CanChangeDep(userInput.hostelType, userInput.roomType); TempData["originalValues"] = model; TempData["rentId"] = helper.GetRentFeeId(userInput.hostelType, userInput.roomType);; TempData["fixId"] = helper.GetFixFeeId(userInput.hostelType, userInput.roomType);; TempData["depId"] = helper.GetDepFeeId(userInput.hostelType, userInput.roomType);; return(PartialView("_FeeChange", model)); }