DocSpace-buildtools/products/ASC.People/Server/Api/NotificationController.cs

24 lines
822 B
C#
Raw Normal View History

2022-03-01 11:52:52 +00:00
namespace ASC.People.Api;
2022-02-28 19:23:39 +00:00
2022-03-01 11:52:52 +00:00
public class NotificationController : ApiControllerBase
2022-02-28 19:23:39 +00:00
{
2022-03-01 11:52:52 +00:00
private readonly NotificationControllerEngine _notificationControllerEngine;
2022-02-28 19:23:39 +00:00
2022-03-01 11:52:52 +00:00
public NotificationController(NotificationControllerEngine notificationControllerEngine)
2022-02-28 19:23:39 +00:00
{
2022-03-01 11:52:52 +00:00
_notificationControllerEngine = notificationControllerEngine;
2022-02-28 19:23:39 +00:00
}
[Create("phone")]
public object SendNotificationToChangeFromBody([FromBody] UpdateMemberRequestDto model)
{
2022-03-01 11:52:52 +00:00
return _notificationControllerEngine.SendNotificationToChange(model.UserId);
2022-02-28 19:23:39 +00:00
}
[Create("phone")]
[Consumes("application/x-www-form-urlencoded")]
public object SendNotificationToChangeFromForm([FromForm] UpdateMemberRequestDto model)
{
2022-03-01 11:52:52 +00:00
return _notificationControllerEngine.SendNotificationToChange(model.UserId);
2022-02-28 19:23:39 +00:00
}
2022-03-01 11:52:52 +00:00
}