public async Task <Response> Handle(UpdateEmail command) { var request = new UpdatePersonRequest() { Id = command.Id, Email = command.Email }; await _dataProvider.UpdatePerson(request); return(SuccessHandler.ReturnUpdateSuccess(EntityName)); }
public async Task <Response> Handle(UpdateFavouriteDrink command) { var request = new UpdatePersonRequest() { Id = command.Id, FavouriteDrinkId = command.FavouriteDrinkId }; await _dataProvider.UpdatePerson(request); return(SuccessHandler.ReturnUpdateSuccess(EntityName)); }