public ActionResult AddUniversityCampus() { ViewBag.ContriesList = new CountryModel().GetAll(); ViewBag.CitiesList = new CityModel().GetAll(); ViewBag.UniversityCampusList = new UniversityCampusModel().GetAll(); if (Convert.ToInt32(Request.QueryString["ID"]) != 0 && Request.QueryString["ID"] != null && Request.QueryString["ID"] != "") { int ID = Convert.ToInt32(Request.QueryString["ID"]); tblUniversityCampu EditUser = new UniversityCampusModel().GetByID(ID); EditUser.Photo = "/Resources/UniverstiyCampus/" + EditUser.Photo; return(View(EditUser)); } else { return(View()); } }
public ActionResult ManageUniversityCampuses() { List <tblUniversityCampu> lst = new UniversityCampusModel().GetAll(); return(View(lst)); }