public AwardModel Get(int id) { var award = _awardService.GetById(id); if (award == null) { throw new HttpResponseException(Request.CreateErrorResponse( HttpStatusCode.NotFound, new HttpError(_resourceManager.GetString("Common.DataNotFound")))); } return(award.ToModel <AwardModel>()); }
public ActionResult AwardGet(int id) { var awardGet = _awardService.GetById(id).Data; return(View("AwardGet", awardGet)); }