public ActionResult GetSalidas() { SalidaRepository SalRepo = new SalidaRepository(); ModelState.Clear(); return(View(SalRepo.ListarSalidas())); }
public ActionResult EditSalida(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } SalidaRepository SalRepo = new SalidaRepository(); Salida result = SalRepo.ListarSalidas() .Find(Sal => Sal.Salida_ID == id); if (result == null) { return(HttpNotFound()); } return(View(result)); }