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); }