internal Brick Delete(int id) { Brick exists = Get(id); _repo.Delete(id); return(exists); }
public ActionResult <Brick> Delete(int id) { try { return(Ok(_br.Delete(id))); } catch (Exception e) { return(BadRequest(e)); } }