Exemple #1
0
        // GET: Maquinaria/Mantenimiento
        public ActionResult Index()
        {
            MantenimientoServicio servicio = new MantenimientoServicio();
            var Mantenimiento = servicio.GetMantenimiento();

            return(View(Mantenimiento.Respuesta.ToList()));
        }
Exemple #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         MantenimientoServicio servicio = new MantenimientoServicio();
         servicio.Dispose();
     }
     base.Dispose(disposing);
 }
Exemple #3
0
        public ActionResult EditNotificacionSAP(int id, string NotificacionSAP)
        {
            if (ModelState.IsValid)
            {
                MantenimientoServicio servicio = new MantenimientoServicio();
                RespuestaServicio <MantenimientoView> _Mantenimiento = servicio.PutMantenimiento(id, NotificacionSAP);

                if (_Mantenimiento == null)
                {
                    return(HttpNotFound());
                }
            }

            return(RedirectToAction("Details/", new RouteValueDictionary(new { controller = "Mantenimiento", action = "Details", Id = id })));
        }
Exemple #4
0
        // GET: Maquinaria/Mantenimiento/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            int idMantenimiento            = (int)id;
            MantenimientoServicio servicio = new MantenimientoServicio();
            RespuestaServicio <MantenimientoView> Mantenimiento = servicio.GetMantenimiento(idMantenimiento);

            if (Mantenimiento == null)
            {
                return(HttpNotFound());
            }
            return(View(Mantenimiento.Respuesta));
        }