Exemple #1
0
        public ActionResult SearchServRep(string ServRepId)
        {
            var _i     = new ArchiveServiceRepresentativeBusiness();
            var search = from c in _i.GetAllArchServReps() 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));
        }
Exemple #2
0
        public ActionResult SearchServRep()
        {
            var _i = new ArchiveServiceRepresentativeBusiness();

            return(View(_i.GetAllArchServReps()));
        }