Beispiel #1
0
 public async Task <IActionResult> getAllSendTransaction()
 {
     try
     {
         int premisesId = int.Parse(User.Claims.First(c => c.Type == "premisesID").Value);
         return(Ok(new { data = _mapper.Map <IList <Models.TransactionReponse.ProviderGetSendTransaction> >(await _transactionBL.getAllProviderSendTransaction(premisesId)) }));
     }
     catch (Exception ex)
     {
         return(BadRequest(new { message = MessageConstant.UNHANDLE_ERROR, error = ex.StackTrace }));
     }
 }