Esempio n. 1
0
        public void ValidateAttributeExists(int serviceId, int specId)
        {
            _eventServiceModelValidator.ValidateEventServiceModelExists(serviceId);

            var service = _dataContext.EventService.First(x => x.Id == serviceId);

            _attributeSpecificationValidator.ValidateSpecificationExists(specId, service.TypeId);
        }
        public Task <ServiceAgreement> CreateServiceAgreement(int eventId, int spsId, int serviceId)
        {
            _eventValidator.ValidateEventExists(eventId);
            _serviceSlotValidator.ValidateServiceProviderSlotExists(eventId, spsId);
            _agreementValidator.ValidateAgreementDoesntExist(eventId, spsId);
            _eventServiceModelValidator.ValidateEventServiceModelExists(serviceId);

            _eventValidator.CanUpdateEvent(eventId);

            return(null);
        }
        public Task <IEnumerable <ServiceAttribute> > GetAllAttributesForServiceAsync(int serviceId)
        {
            _eventServiceModelValidator.ValidateEventServiceModelExists(serviceId);

            return(null);
        }
 public Task <Location> GetLocationForServiceAsync(int serviceId)
 {
     _eventServiceModelValidator.ValidateEventServiceModelExists(serviceId);
     return(null);
 }