예제 #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));
        }