public ActionResult SetRejectReason2(ApplicationRejectReason Reason, int application_id) { if (Reason != null) { AssetApplication asset_application = unitOfWork.AssetApplications.Find(application_id); asset_application.RejectReason = Reason; unitOfWork.AssetApplications.Update(asset_application); unitOfWork.SaveChanges(); } return RedirectToAction("List","AssetApplication"); }
public ActionResult SetRejectReason2(ApplicationRejectReason Reason, int application_id) { if (Reason != null) { FundApplication fund_application = unitOfWork.FundApplications.Find(application_id); fund_application.RejectReason = Reason; unitOfWork.FundApplications.Update(fund_application); unitOfWork.SaveChanges(); } return RedirectToAction("List", "FundApplication"); }