Example #1
0
        /// <summary>
        /// Action Method to save the changes (daily mess charges) to the database
        /// </summary>
        /// <param name="userInput"> the fees as updated by the user</param>
        /// <returns>Partial View or Success Message</returns>
        public ActionResult ChangeMessFees(MessChargesViewModel userInput)
        {
            TransactionHelper helper = new TransactionHelper();

            // if model is not valid, do not process furthur
            if (!ModelState.IsValid)
            {
                return(PartialView("_MessFeeChange", userInput));
            }

            return(Content(helper.ChangeMessFees(userInput)));
        }