public async Task <IActionResult> MostrarInfoSuministros() { if (User.Identity.IsAuthenticated) { string permiso = Permisos("PermisoSubModulo").PSMAPB ? "PermisoSubModulo" : "PermisoModulo"; bool crear = Permisos(permiso).PMMAPL.Where(w => w.Value.Contains("Crear")).Any(); bool leer = Permisos(permiso).PMMAPL.Where(w => w.Value.Contains("Leer")).Any(); if (crear && leer) { List <Col_Suministros> insumos = await service.ListarSuministros(); return(Json(insumos)); } else { return(NotFound()); } } else { return(RedirectToAction("Index", "Login")); } }