From 07cfec619c1b69f00264cf3cebb2bdcce3aa41d2 Mon Sep 17 00:00:00 2001 From: fede Date: Mon, 6 Jan 2025 21:22:58 -0300 Subject: [PATCH] avance: estado pre implementacion de notificaciones --- Aspnet/Controllers/NotificacionesController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aspnet/Controllers/NotificacionesController.cs b/Aspnet/Controllers/NotificacionesController.cs index 33ed386..e34d816 100644 --- a/Aspnet/Controllers/NotificacionesController.cs +++ b/Aspnet/Controllers/NotificacionesController.cs @@ -29,6 +29,7 @@ public class NotificacionesController: ControllerBase { noti.AddFirst(dto); }); + return Ok(noti); } @@ -76,7 +77,6 @@ public class NotificacionesController: ControllerBase { .Build(); var ret = RepositorioNotificaciones.Singleton.AltaNotificacion(noti); - return ret? Ok(new {message = "Se envio la notificacion"}):BadRequest(new {message = "Fallo al intentar guardar la notificacion"}); }