public async Task <Client> Load(int id) { var entity = await _store.Load(id); if (entity == null) { throw new InvalidOperationException(); } if (!CanManage(entity)) { throw new InvalidOperationException(); } return(Mapper.Map <Client>(entity)); }