public async Task <Response> Handle(UpdateChosenDrink command) { var request = new UpdatePartyGuestRequest { Id = command.Id, ChosenDrinkId = command.ChosenDrinkId }; await _dataProvider.UpdatePartyGuest(request); return(SuccessHandler.ReturnUpdateSuccess(EntityName)); }
public async Task <Response> Handle(UpdateLocation command) { var request = new UpdatePartyRequest() { Id = command.Id, Location = command.Location }; await _dataProvider.UpdateParty(request); return(SuccessHandler.ReturnUpdateSuccess(EntityName)); }
public async Task <Response> Handle(UpdateVipStatus command) { var request = new UpdatePartyGuestRequest { Id = command.Id, IsVIP = command.IsVip }; await _dataProvider.UpdatePartyGuest(request); return(SuccessHandler.ReturnUpdateSuccess(EntityName)); }
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)); }