Пример #1
0
 // GET: Alarma
 public async Task <IActionResult> Index()
 {
     try
     {
         ViewBag.CantidadAlarmas = (await productoRepository.GetCantidadAlarmas()).Cantidad;
         return(View(await productoRepository.GetAllAlarma()));
     }
     catch (Exception e)
     {
         return(StatusCode((int)System.Net.HttpStatusCode.Unauthorized, e.Message));
         //return Unauthorized(e.Message);
     }
 }