コード例 #1
0
ファイル: FeedsController.cs プロジェクト: lulzzz/sito
        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());
        }