Beispiel #1
0
        public bool Delete(string cellCode)
        {
            var cell = CellRepository.GetQueryable()
                       .FirstOrDefault(c => c.CellCode == cellCode);

            if (cell != null)
            {
                CellRepository.Delete(cell);
                CellRepository.SaveChanges();
            }
            else
            {
                return(false);
            }
            return(true);
        }