Example #1
0
        public void GetRequest(IGetDetailsBase getDetailsBase)
        {
            var requests = _Schemas.Requests;

            requests.Entity.id      = getDetailsBase.RequestId;
            getDetailsBase.Requests = requests.Select.Entity;
        }
Example #2
0
        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);
        }