public ActionResult SearchServRep(string ServRepId) { var _i = new ServiceRepresentativeBusiness(); var search = from c in _i.GetAll() select c; if (!search.Equals(null)) { search = search.Where(d => d.ServiceRepIdNo.Equals(ServRepId)); } else { ViewBag.Error = "Service representative not found"; return(View()); } return(View(search)); }
public ActionResult SearchServRep() { var _i = new ServiceRepresentativeBusiness(); return(View(_i.GetAll())); }
public ActionResult GetAll() { ViewBag.Count = servrep.GetAll().Count; return(View(servrep.GetAll())); }