Esempio n. 1
0
        public async Task <IActionResult> GetNotificationsAsync([FromQuery] int pageSize = 50, [FromQuery] string startTime = null, [FromQuery] string endTime = null)
        {
            var userId  = GetCurrentUserId();
            var options = FilterHelper.CreateOptions(startTime, endTime);

            var request = new GetNotificationsRequest(userId, options, pageSize);
            var res     = await _service.ListAsync(request);

            return(Ok(res));
        }