public ActionResult CalculateBillAmount(BillRequestViewModel model) { BillCalculationResponseModel Result = new BillCalculationResponseModel(); if (ModelState.IsValid) { Result = _bill.CalculatetheBilledAmount(model); } return(Json(new { Result = Result }, JsonRequestBehavior.AllowGet)); }