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"}); }