// GET: Feedbacks/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Feedback feedback = FeedbackBusiness.Find(id); if (feedback == null) { return(HttpNotFound()); } return(View(ViewNamesConstant.AdminFeedbacksDetails, feedback)); }
public ActionResult Details(int?id) { if (id == null) { return(View(ViewNamesConstant.FrontendHomeError)); } Feedback feedback = FeedbackBusiness.Find(id); if (feedback == null) { return(View(ViewNamesConstant.FrontendHomeError)); } return(View(ViewNamesConstant.AdminFeedbacksDetails, feedback)); }