Esempio n. 1
0
        public Brick Delete(int id)
        {
            Brick exists = Get(id);

            _repo.Delete(id);
            return(exists);
        }
Esempio n. 2
0
        internal Brick Delete(int id)
        {
            Brick brick = Get(id);

            _repo.Delete(brick);
            return(brick);
        }
Esempio n. 3
0
        internal String Delete(int id)
        {
            var found = _repo.GetById(id);

            if (found == null)
            {
                throw new Exception("Invalid Id");
            }
            _repo.Delete(id);
            return("Successfully Deleted");
        }
Esempio n. 4
0
 public object Delete(int id)
 {
     _repo.Delete(id);
     return("Successfully Booted");
 }
 internal string Delete(int id)
 {
     Get(id);
     _repo.Delete(id);
     return("Successfully Deleted");
 }
 public string Delete(int id)
 {
     _repo.Delete(id);
     return("Successfully Deleted");
 }