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)); }
public void ScheduleWork(string propertyCode, string tenantUnit, string requestCode, [FromBody] ScheduleServiceWorkCommand serviceWorkOrder) { _propertyService.ExecuteTenantRequestCommandAsync(propertyCode, tenantUnit, requestCode, serviceWorkOrder); }
private void AddWorkerOrder(ScheduleServiceWorkCommand command, TenantRequest tTenantRequest) { //WorkerRequestsCloudTable }