public ActionResult FilterResidents([DataSourceRequest] DataSourceRequest request, string firstName, string lastName)
        {
            ViewBag.ScreenWidth = Request.Browser.ScreenPixelsWidth;
            var residentSearch = new ResidentSearch {
                FirstName = firstName, LastName = lastName
            };

            Session["residentSearch"] = residentSearch;
            DataSourceResult result = service.SearchResidentSetItems(residentSearch).ToDataSourceResult(request);

            return(Json(result));
        }
 public ActionResult Consultation(string consultationType)
 {
     try
     {
         ViewBag.ConsultationType = consultationType;
         var residentSearch = new ResidentSearch();
         return(View("SelectResidentItem", residentSearch));
     }
     catch (Exception ex)
     {
         return(this.ErrorHandler(ex));
     }
 }
        public ActionResult Index()
        {
            var residentSearch = new ResidentSearch();

            if (Session["residentSearch"] != null)
            {
                residentSearch = (ResidentSearch)Session["residentSearch"];
            }
            if (Request.Browser.IsMobileDevice)
            {
                return(View("IndexMobile", residentSearch));
            }
            return(View(residentSearch));
        }
Exemplo n.º 4
0
        public ActionResult Dispatcher()
        {
            var residentSearch = new ResidentSearch();

            return(View("Dispatcher", residentSearch));
        }