Esempio n. 1
0
        public void Delete(int?id)
        {
            if (read.GetById(id) == null)
            {
                throw new NotFoundComputerException();
            }

            delete.Delete(id);
        }
Esempio n. 2
0
 private Computer GetComputer(int?id)
 {
     return(computerRepository.GetById(id) ?? throw new NotFoundComputerException());
 }