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

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