public ActionResult Create(ReferralVo input) { if (this.ModelState.IsValid) { var item = referralManager.insert(input); return(RedirectToAction("Index")); } return(View(input)); }
public ActionResult AddSingleReferral(ReferralVo referral, int companyCategoryTypeId) { if (this.ModelState.IsValid) { referral.companyCategoryTypeId = companyCategoryTypeId; ReferralVo r = referralManager.insert(referral); notificationManager.sendReferralNotification(new int[] { referral.referralId }); return(View("CloseModalsAndRefresh")); } return(PartialView("_EditReferralModal", referral)); }