public async Task <BaseResults.EmptyResult> Delete([FromQuery] string sid,
                                                           [FromBody] int projektKapcsolatKod)
        {
            var result = new BaseResults.EmptyResult();

            using (var tr = await _context.Database.BeginTransactionAsync())
                try
                {
                    await ProjektKapcsolatBll.DeleteAsync(_context, sid, projektKapcsolatKod);

                    tr.Commit();
                }
                catch (Exception ex)
                {
                    tr.Rollback();
                    result.Error = ex.InmostMessage();
                }

            return(result);
        }
        public async Task <ProjektKapcsolatResult> SelectForUgyfelter([FromQuery] string sid,
                                                                      [FromBody] int projektKod)
        {
            var result = new ProjektKapcsolatResult();

            using (var tr = await _context.Database.BeginTransactionAsync())
                try
                {
                    result.Result = await ProjektKapcsolatBll.SelectAsync(_context, sid, projektKod, true);

                    tr.Commit();
                }
                catch (Exception ex)
                {
                    tr.Rollback();
                    result.Error = ex.InmostMessage();
                }

            return(result);
        }
        public async Task <Int32Result> UjBizonylatToProjekt([FromQuery] string sid,
                                                             [FromBody] ProjektKapcsolatParam par)
        {
            var result = new Int32Result();

            using (var tr = await _context.Database.BeginTransactionAsync())
                try
                {
                    result.Result = await ProjektKapcsolatBll.UjBizonylatToProjektAsync(_context, sid,
                                                                                        par.ProjektKod, par.Dto);

                    tr.Commit();
                }
                catch (Exception ex)
                {
                    tr.Rollback();
                    result.Error = ex.InmostMessage();
                }

            return(result);
        }