예제 #1
0
        public IActionResult DeleteCourse(string name)
        {
            try {
                List <Course> list = _courseServices.RemoveCourse(name);

                if (list != null)
                {
                    return(Ok(list));
                }

                else
                {
                    return(BadRequest());
                }
            }catch (Exception) {
                return(StatusCode(500));
            }
        }