Example #1
0
        public IActionResult Delete(string id)
        {
            if (!Guid.TryParse(id, out var idRequested))
            {
                return(BadRequest("Invalid ID Format"));
            }

            _studyPlanRepository.Delete(idRequested);

            return(Accepted());
        }
 public async Task Delete(StudyPlan studyPlan)
 {
     await _studyPlanRepository.Delete(studyPlan);
 }