public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CategoriasDTO periodo = categoriasDAO.Find(id); if (periodo == null) { return(HttpNotFound()); } return(PartialView("Details", periodo)); }