// view to the affiliation committee public ActionResult ApplicationFormViewApp(int Id) { try { var ViewApplication = db.TA_Affi_ins_Pop_pending_applications_By_Id(Id).ToList(); if (!ViewApplication.Any()) { ViewBag.ApplicationIdNotFound = "This Application Does Not Exist AnyMore"; return RedirectToAction("ApplicationForm", "AffiliationAdminSide"); } foreach (var data in ViewApplication.ToList()) { AffiliationAdminDetail.Inst_Id_for_Admin = Convert.ToString(data.Institute_ID); AffiliationAdminDetail.Application_id = Convert.ToInt32(data.Application_ID); AffiliationAdminDetail.Affiliation_Year = Convert.ToInt32(data.Year); AffiliationAdminDetail.Id_year_for_affilation = Convert.ToInt32(data.Year_ID); AffiliationAdminDetail.InstituteName = data.Institute_Name; AffiliationAdminDetail.PrincipalName = data.Principal_Name; AffiliationAdminDetail.PostelAddress = data.postal_Address; AffiliationAdminDetail.Phonenumber = data.phone_No; AffiliationAdminDetail.faxNumber = data.Fax; AffiliationAdminDetail.reg = data.reg; } return RedirectToAction("/ApplicationAdminDetail"); } catch (Exception e) { ViewBag.Exception = "There Is An Error Occured Please Contact Developers If Message Showed Again"; return RedirectToAction("ApplicationForm", "AffiliationAdminSide"); } }