예제 #1
0
 public async Task <IActionResult> PatchNotificationRead([FromRoute] int id, [FromBody] NotificationPatchDto dto)
 {
     return(await HandleExceptionsWithOk(async() => await notificationService.ChangeImportant(UserName, id, dto.B)));
 }
예제 #2
0
 public async Task SetNotificationImportant(int notificationId, bool to)
 {
     await notificationService.ChangeImportant(Context.UserIdentifier, notificationId, to);
 }