public async Task <HttpResponseMessage> GetOpinionAndRequest(Guid requestId, string state)
 {
     return(await ValidateAndHandleOperationExecutionAsync(async() =>
     {
         var opinionReq = new OpinionRequestApi();
         opinionReq.Request = await _requestDomainService.GetRequestCompleteEntitleByRequestId(requestId, state);
         opinionReq.Opinion = await _requestDomainService.GetOpinionByRequest(requestId);
         return Request.CreateResponse(HttpStatusCode.OK, opinionReq);
     }));
 }
Ejemplo n.º 2
0
        public async Task <HttpResponseMessage> GetOpinionByRequest(Guid requestId)
        {
            return(await ValidateAndHandleOperationExecutionAsync(async() =>
            {
                var res = await _requestDomainService.GetOpinionByRequest(requestId);


                return Request.CreateResponse(HttpStatusCode.OK, res);
            }));
        }