Example #1
0
        public CancelGigResponseMessage Handle(CancelGigRequestMessage request)
        {
            if (!_validator.Validate(request))
            {
                return(new CancelGigResponseMessage(false, $"Validation failed for request"));
            }

            _gigRepository.Remove(request.Id);

            return(new CancelGigResponseMessage(true, $"Gig {request.Id} - deleted"));;
        }