Пример #1
0
        public ActionResult Index(string query = "")
        {
            var model = bllModel.GetModelForHomePage(query);

            if (model == null)
            {
                return(View(new List <DisplayUserVM>()));
            }

            return(View(model));
        }
Пример #2
0
        public IHttpActionResult Get(string query = "")
        {
            var model = bllModel.GetModelForHomePage(query);

            if (model == null)
            {
                return(NotFound());
            }

            return(Json(model));
        }