Beispiel #1
0
        public bool ResetByCellName(string cellName)
        {
            var item = _repository.FirstOrDefault(x => x.CellName == cellName && x.IsInUse);

            if (item == null)
            {
                return(false);
            }
            item.IsInUse = false;
            _repository.SaveChanges();
            return(true);
        }