public IActionResult DeleteTrainer(string name) { var repo = new TrainerRepository(); repo.Remove(name); return(Ok()); }
public IActionResult DeleteTrainer(string name) { _repo.Remove(name); return(Ok()); }
public bool Remove(Trainer trainer) { bool isDelete = _trainerRepository.Remove(trainer); return(isDelete); }