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