public async Task <ShiftModel> GetAsync(int id, int clientId, int userId) { if (!await _permissionManager.HasPermission(clientId, userId, Permission.CanViewShift)) { throw new Exception("User has not permission to perform this operation"); } return(_shiftMapper.ConvertToModel(await _shiftRepository.GetAsync(id))); }