示例#1
0
 internal String Delete(int id)
 {
     if (_repo.Delete(id))
     {
         return("Successfully Deleted");
     }
     throw new Exception("Invalid Id");
 }
示例#2
0
        internal Shoe Delete(int id)
        {
            Shoe foundShoe = GetById(id);

            if (_repo.Delete(id))
            {
                return(foundShoe);
            }
            throw new Exception("Something bad happened...");
        }
示例#3
0
        public string Delete(string id)
        {
            Shoe shoe = _repo.Get(id);

            if (shoe == null)
            {
                throw new Exception("Invalid Id Homie");
            }
            _repo.Delete(id);
            return("Successfully Booted");
        }