public HttpResponseMessage GetHtml([FromUri] int id) { var banner = _banner.GetHtml(id); if (banner != null) { return(Request.CreateResponse(HttpStatusCode.OK, banner)); } return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Banner not found for id.")); }