public async Task<bool> Update(UnCmMeter item)
        {
            var meter = await IdExist(item.Id);

            meter.Name = item.Name;
            if (!string.IsNullOrEmpty(item.MsgEn)) meter.MsgEn = item.MsgEn;
            if (!string.IsNullOrEmpty(item.MsgTh)) meter.MsgTh = item.MsgTh;

            _db.Entry(meter).State = EntityState.Modified;
            try
            {
                await _db.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException exception)
            {
                throw new DbUpdateConcurrencyException(exception.Message);
            }

            return true;
        }
        public async Task<UnCmMeter> Add(UnCmMeter item)
        {
            var meter = new UnCmMeter
            {
                Name = item.Name,
                Id = await UsedIdName(item.Id)
            };

            if (!string.IsNullOrEmpty(item.MsgEn)) meter.MsgEn = item.MsgEn;
            if (!string.IsNullOrEmpty(item.MsgTh)) meter.MsgTh = item.MsgTh;

            meter = _db.UnCmMeters.Add(meter);
            try
            {
                await _db.SaveChangesAsync();
                return meter;
            }
            catch (DbUpdateConcurrencyException exception)
            {
                throw new DbUpdateConcurrencyException(exception.Message);
            }
        }