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()); }
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()); }