public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Creative creative = CreativeService.GetCreative(id ?? 0); if (creative == null) { return(HttpNotFound()); } return(View(creative)); }
public string GetCreative(CreativeView creative) { return(CreativeService.GetCreative(creative.Id)); }