Example #1
0
        public async Task <ColumnSettingsResult> GetReszletekSettings([FromQuery] string sid)
        {
            var result = new ColumnSettingsResult();

            using (var tr = await _context.Database.BeginTransactionAsync())
                try
                {
                    result.Result = VolumeBll.ReszletekSettings(_context, sid);

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

            return(result);
        }
Example #2
0
        public async Task <DokumentumkodByVolumeResult> DokumentumkodByVolume([FromQuery] string sid,
                                                                              [FromBody] int volumeKod)
        {
            var result = new DokumentumkodByVolumeResult();

            using (var tr = await _context.Database.BeginTransactionAsync())
                try
                {
                    result.Result = await VolumeBll.DokumentumkodByVolumeAsync(_context, sid, volumeKod);

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

            return(result);
        }