public ActionResult Index(string query = "") { var model = bllModel.GetModelForHomePage(query); if (model == null) { return(View(new List <DisplayUserVM>())); } return(View(model)); }
public IHttpActionResult Get(string query = "") { var model = bllModel.GetModelForHomePage(query); if (model == null) { return(NotFound()); } return(Json(model)); }