Ejemplo n.º 1
0
        public async Task <ActionResult> Edit(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(View(new Feed()));
            }

            var post = await _feed.FeedById(id);

            if (post != null)
            {
                return(View(post));
            }

            return(NotFound());
        }