Ejemplo n.º 1
0
        // 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));
        }
Ejemplo n.º 2
0
        public IHttpActionResult GetUserStory(int id)
        {
            UserStory userStory = service.GetUserStoryById(id);

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

            return(Ok(userStory));
        }