コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }
コード例 #4
0
        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));
        }
コード例 #5
0
        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));
        }