コード例 #1
0
        public IActionResult DeleteTrainer(string name)
        {
            var repo = new TrainerRepository();

            repo.Remove(name);

            return(Ok());
        }
コード例 #2
0
        public IActionResult DeleteTrainer(string name)
        {
            _repo.Remove(name);

            return(Ok());
        }
コード例 #3
0
        public bool Remove(Trainer trainer)
        {
            bool isDelete = _trainerRepository.Remove(trainer);

            return(isDelete);
        }