public ActionResult Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Meal meal = MealDAO.BuscarMealPorId(id); if (meal == null) { return(HttpNotFound()); } return(View(meal)); }