public ActionResult <ResponseContext> GetAllNotifications([FromQuery] string username, [FromQuery] int?pagenumber)
        {
            try
            {
                if (string.IsNullOrEmpty(username))
                {
                    return(StatusCode(StatusCodes.Status500InternalServerError, new ResponseContext
                    {
                        code = (int)Common.ResponseCode.ERROR,
                        message = "Thiếu username",
                        data = null
                    }));
                }
                if ((bool)HttpContext.Items["isLoggedInOtherDevice"])
                {
                    return(Ok(new ResponseContext
                    {
                        code = (int)Common.ResponseCode.IS_LOGGED_IN_ORTHER_DEVICE,
                        message = Common.Message.IS_LOGGED_IN_ORTHER_DEVICE,
                        data = null
                    }));
                }
                var listItems = new List <Notification>();
                listItems = _notificationServices.GetAll(username, pagenumber);

                return(Ok(new PagingDataResponse
                {
                    code = (int)Common.ResponseCode.SUCCESS,
                    message = Common.Message.SUCCESS,
                    data = listItems,
                }));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, ex.Message);
                return(StatusCode(StatusCodes.Status500InternalServerError, new ResponseMessage {
                    status = "ERROR", message = ex.Message
                }));
            }
        }