Exemplo n.º 1
0
        public Task UpdatePartyGuest(UpdatePartyGuestRequest request)
        {
            var param = new ParamBuilder()
                        .WithPartyGuestId(request.Id)
                        .WithParam("ChosenDrinkId", request.ChosenDrinkId)
                        .WithParam("IsVIP", request.IsVIP);

            return(db.Update(param));
        }
        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));
        }
Exemplo n.º 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));
        }