Example #1
0
        public ActionResult GetSalidas()
        {
            SalidaRepository SalRepo = new SalidaRepository();

            ModelState.Clear();

            return(View(SalRepo.ListarSalidas()));
        }
Example #2
0
        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));
        }