/// <inheritdoc />
        /// <summary>
        /// Get notifications by user id
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="onlyUnread"></param>
        /// <returns></returns>
        public virtual async Task <ResultModel <IEnumerable <SystemNotifications> > > GetNotificationsByUserIdAsync(Guid userId, bool onlyUnread = true)
        {
            var filters = new List <Filter>
            {
                new Filter(nameof(SystemNotifications.UserId), userId)
            };

            if (onlyUnread)
            {
                filters.Add(new Filter(nameof(BaseModel.IsDeleted), false));
            }

            var notifications = await _dataService.GetAllWithInclude <SystemNotifications, SystemNotifications>(null, filters);

            if (notifications.IsSuccess)
            {
                notifications.Result = notifications.Result.OrderBy(x => x.Created);
            }

            return(notifications);
        }