Exemplo n.º 1
0
        public IActionResult GetById(TransactionGetByIdModel transactionGetByIdModel)
        {
            var result = _transactionDataAccess.GetByIdAsync(transactionGetByIdModel.Id).Result;

            if (result == null)
            {
                return(BadRequest("Not found"));
            }

            return(Ok(result));
        }