// GET: UserStory/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } UserStory userStory = service.GetUserStoryById(id.Value); if (userStory == null) { return(HttpNotFound()); } return(View(userStory)); }
public IHttpActionResult GetUserStory(int id) { UserStory userStory = service.GetUserStoryById(id); if (userStory == null) { return(NotFound()); } return(Ok(userStory)); }