public ActionResult <Example> Delete(int id) { var example = _repo.GetEntityById(id); _repo.DeleteEntity(example); _repo.Save(); return(example); }
public ActionResult <Example> Delete(int id) { var example = _repo.GetEntityById(id); _repo.DeleteEntity(example); _repo.Save(); return(example); }