public Brick Delete(int id) { Brick exists = Get(id); _repo.Delete(id); return(exists); }
internal Brick Delete(int id) { Brick brick = Get(id); _repo.Delete(brick); return(brick); }
internal String Delete(int id) { var found = _repo.GetById(id); if (found == null) { throw new Exception("Invalid Id"); } _repo.Delete(id); return("Successfully Deleted"); }
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"); }