public void GetRequest(IGetDetailsBase getDetailsBase) { var requests = _Schemas.Requests; requests.Entity.id = getDetailsBase.RequestId; getDetailsBase.Requests = requests.Select.Entity; }
public ValidationResult ValidateRequestId(IGetDetailsBase getDetails) { var requests = _Schemas.Requests; requests.Entity.id = getDetails.RequestId; if (requests.Count == 0) { return(TfValidationResult.Compose( "DataNotFound", nameof(getDetails.RequestId))); } return(null); }