public ActionResult FilterTypeConsultations([DataSourceRequest] DataSourceRequest request, /*string firstName, string lastName,*/ DateTime?typeconsultationdate, int?typeconsultationid)
        {
            var typeConsultationSearch = new TypeConsultationSearch { /*FirstName = firstName, LastName = lastName,*/
                TypeConsultationDate = typeconsultationdate, TypeConsultationID = typeconsultationid
            };

            Session["typeConsultationSearch"] = typeConsultationSearch;
            DataSourceResult result = typeConsultationService.FilterTypeConsultations(typeConsultationSearch).ToDataSourceResult(request);

            return(Json(result));
        }
        public ActionResult Index()
        {
            var typeConsultationSearch = new TypeConsultationSearch();

            if (Session["typeConsultationSearch"] != null)
            {
                typeConsultationSearch = (TypeConsultationSearch)Session["typeConsultationSearch"];
            }
            if (Request.Browser.IsMobileDevice)
            {
                return(View("MobileIndex", typeConsultationSearch));
            }
            return(View(typeConsultationSearch));
        }