public async Task <bool> AssignUserToTask(int meetingId, int userId, int taskId, short estimatedTime) { var hasPermissions = await _userAuthorization.Authorize(_userId, meetingId, MeetingAction.AssignUser); if (hasPermissions) { return(await _resultDao.AssignUserToTask(userId, taskId, estimatedTime)); } throw new UnauthorizedAccessException(); }