Beispiel #1
0
        public void Validate(ScheduleServiceWorkCommand  serviceWorkOrder)
        {

            var results = _validationRulesService.Validate(serviceWorkOrder);
            if (!results.IsValid)
            {
                throw new DomainValidationException("serviceWorkOrder_validation", results.Errors);
            }
        }
        public ValidationResult Validate(ScheduleServiceWorkCommand serviceWorkOrder)
        {
            var validator = new ScheduleServiceWorkCommandValidator();

            return(validator.Validate(serviceWorkOrder));
        }
Beispiel #3
0
 public void ScheduleWork(string propertyCode, string tenantUnit, string requestCode, [FromBody] ScheduleServiceWorkCommand serviceWorkOrder)
 {
     _propertyService.ExecuteTenantRequestCommandAsync(propertyCode, tenantUnit, requestCode, serviceWorkOrder);
 }
Beispiel #4
0
 private void AddWorkerOrder(ScheduleServiceWorkCommand command, TenantRequest tTenantRequest)
 {
     //WorkerRequestsCloudTable
 }