// GET: Tarea/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } BL_Tarea proceso = new BL_Tarea(); tb_Tarea tarea = proceso.Obtener(Convert.ToInt32(id)); if (tarea == null) { return(HttpNotFound()); } return(View(tarea)); }
public tb_Tarea Obtener(int?codigo) { BL_Tarea tarea = new BL_Tarea(); return(tarea.Obtener(Convert.ToInt32(codigo))); }