public ActionResult AllPostRequirement(string title = null) { List <PostYourRequirement> postRequirement = new List <PostYourRequirement>(); IAdminBL adminBL = new AdminEngine(); try { int user_id = Convert.ToInt32(HttpContext.Session[SessionKey.CurrentUserID]); postRequirement = adminBL.GetAllPostRequirement(title); } catch (Exception ex) { Log.Error("Error in AdminController/AllPostRequirement", ex); throw ex; } return(View(postRequirement)); }