public async Task <MennyisegiegysegResult> Read([FromQuery] string sid, [FromBody] string maszk)
        {
            var result = new MennyisegiegysegResult();

            using (var tr = await _context.Database.BeginTransactionAsync())
                try
                {
                    result.Result = await MennyisegiegysegBll.ReadAsync(_context, sid, maszk);

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

            return(result);
        }
        public async Task <MennyisegiegysegResult> CreateNew([FromQuery] string sid)
        {
            var result = new MennyisegiegysegResult();

            using (var tr = await _context.Database.BeginTransactionAsync())
                try
                {
                    result.Result = new List <MennyisegiegysegDto> {
                        await MennyisegiegysegBll.CreateNewAsync(_context, sid)
                    };

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

            return(result);
        }