public ActionResult ViewAllPatient(QueryFilterAttribute queryFilterAttribute = QueryFilterAttribute.none, string filterValue = "", string viewMessage = "") { var getAll = _objIPatient.GetAllPatient(queryFilterAttribute, filterValue, "IN", true); var filterList = _objIPatient.GetFilterList(); ViewBag.FilterList = new SelectList(filterList, "Value", "Text"); ViewBag.Message = viewMessage; return(View(getAll)); }