public ActionResult AddModulesAndPayments(CustomerViewModel objCustomerViewModel) { bool status = false; var userDetails = (CustomerLoginDetail)Session["UserSession"]; try { objCustomerViewModel.objModulesPayment.CreatedDate = DateTime.Now; objCustomerViewModel.objModulesPayment.CreatedBy = Convert.ToInt32(userDetails.UserId); status = CR.AddModulesAndPayments(objCustomerViewModel.objModulesPayment); } catch (Exception ex) { newexception.AddException(ex, userDetails.GroupId); } return(Json(status, JsonRequestBehavior.AllowGet)); }