public async Task <BizonylatComplexResult> GetComplex([FromQuery] string sid, [FromBody] int bizonylatKod) { var result = new BizonylatComplexResult(); using (var tr = await _context.Database.BeginTransactionAsync()) try { result.Result = new List <BizonylatComplexDto> { await BizonylatBll.GetComplexAsync(_context, sid, bizonylatKod) }; tr.Commit(); } catch (Exception ex) { tr.Rollback(); result.Error = ex.InmostMessage(); } return(result); }