Ejemplo n.º 1
0
        public IHttpActionResult Get(string query = "")
        {
            var model = bllModel.GetModelForHomePage(query);

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

            return(Json(model.ToArray()));
        }
Ejemplo n.º 2
0
        public ActionResult Index(string query = "")
        {
            var model = bllModel.GetModelForHomePage(query);

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

            return(View(model));
        }