Exemple #1
0
 public IHttpActionResult SetStatus(SetStatusRequest request)
 {
     try
     {
         var tokenObj = new ParsedTokenHelper().GetParsedToken(Request.Properties);
         _iCreditRequestService.SetStatus(tokenObj.UserId,
                                          request.CreditRequestId, request.CreditRequestStatusInfo, request.Message);
         return(Ok());
     }
     catch (BankClientException ex)
     {
         return(BadRequest(ex.Message));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }