public bool Delete(int id) { SpeciesRepository speciesRepository = new SpeciesRepository(); try { speciesRepository.Delete(id); return(true); } catch { return(false); } }
public string Delete(int id) { _repo.Delete(id); return("Deleted"); }
public bool Delete(int id) { SpeciesRepository speciesRepository = new SpeciesRepository(); try { speciesRepository.Delete(id); return(true); } catch { return(false); } }
public string Delete(int id) { _repo.Delete(id); return("Deleted"); }