public JsonResult CheckApplication(ApplicationReading stud) { var apps = (IEnumerable <RegularApplication>)TempData["MyApplications1"]; TempData.Keep("MyApplications1"); TempData["MyApp"] = apps.Where(x => x.Sl == stud.Sl).First(); TempData["MyAppInfo"] = stud; return(Json("", JsonRequestBehavior.AllowGet)); }
public JsonResult CheckApplication(ApplicationReading stud) { var applications = (IEnumerable <RegularApplication>)TempData["StudentAppRecovereds"]; TempData.Keep("StudentAppRecovereds"); var app = applications.Where(x => x.Sl == stud.Sl).First(); string msg = ""; if (!app.PartnerReview) { Employee emp = new Employee(); msg = emp.UpdateOnAppReview(app.PartnerId, app.Sl); } else { msg = "Updated"; } TempData["ReviewingApp"] = app; TempData["AppReadingInfo"] = stud; return(Json(msg, JsonRequestBehavior.AllowGet)); }