public ActionResult Delete(int postId, int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var postTags = _postTagsRepository.Get((int)id); if (postTags == null) { return(HttpNotFound()); } return(View(postTags)); }