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

            if (await NameExist(item.StatusNameTh,item.StatusNameEn)) return false;

            type.StatusNameTh = item.StatusNameTh;
            type.StatusNameEn = item.StatusNameEn;

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

            return true;
        }
        public async Task<GpsState> Add(GpsState item)
        {
            if (await NameExist(item.StatusNameTh,item.StatusNameEn)) return null;

            var newType = new GpsState()
            {
                StatusNameTh = item.StatusNameTh,
                StatusNameEn = item.StatusNameEn
            };

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