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

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

            _repo.Delete(brick);
            return(brick);
        }
Ejemplo 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");
        }
Ejemplo n.º 4
0
 public object Delete(int id)
 {
     _repo.Delete(id);
     return("Successfully Booted");
 }
Ejemplo n.º 5
0
 internal string Delete(int id)
 {
     Get(id);
     _repo.Delete(id);
     return("Successfully Deleted");
 }
 public string Delete(int id)
 {
     _repo.Delete(id);
     return("Successfully Deleted");
 }