public async Task <JsonResult> CleanUserNotificationByName(string notificationName)
        {
            long userId = AbpSession.UserId.Value;
            await _sysNotificationAppService.CleanUserNotificationByName(userId, notificationName);

            return(Json(true));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 清空消息
        /// </summary>
        /// <param name="notificationName"></param>
        /// <returns></returns>
        public async Task <JsonResult> CleanUserNotificationByName([FromBody] string notificationName)
        {
            long userId = AbpSession.UserId.Value;
            await _sysNotificationAppService.CleanUserNotificationByName(new SysUserNotification()
            {
                UserId = userId, NotificationName = notificationName
            });

            return(Json(true));
        }