Example #1
0
        public ActionResult Details(string id)
        {
            var awardModel = bllModel.GetAward(id);

            if (awardModel == null)
            {
                return(HttpNotFound());
            }

            return(View(awardModel));
        }
Example #2
0
        public IHttpActionResult GetAward(string id)
        {
            var awardModel = bllModel.GetAward(id);

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

            return(Json(awardModel));
        }