public async Task Update(ChangedGame account) { var entity = await Store.Retrieve(account.Id); Mapper.Map(account, entity); await Store.Update(entity); }
public async Task Update([FromBody] ChangedGame model) { await Validate(new Entity { Id = model.Id }); await GameService.Update(model); }