avance: estado pre implementacion de notificaciones
This commit is contained in:
@@ -29,6 +29,7 @@ public class NotificacionesController: ControllerBase {
|
|||||||
|
|
||||||
noti.AddFirst(dto);
|
noti.AddFirst(dto);
|
||||||
});
|
});
|
||||||
|
return Ok(noti);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -76,7 +77,6 @@ public class NotificacionesController: ControllerBase {
|
|||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
var ret = RepositorioNotificaciones.Singleton.AltaNotificacion(noti);
|
var ret = RepositorioNotificaciones.Singleton.AltaNotificacion(noti);
|
||||||
|
|
||||||
return ret?
|
return ret?
|
||||||
Ok(new {message = "Se envio la notificacion"}):BadRequest(new {message = "Fallo al intentar guardar la notificacion"});
|
Ok(new {message = "Se envio la notificacion"}):BadRequest(new {message = "Fallo al intentar guardar la notificacion"});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user