예제 #1
0
        public IHttpActionResult DeleteTeacher(string id)
        {
            TeacherDTO teacher = bizTeacher.findById(id);

            if (teacher == null)
            {
                return(NotFound());
            }

            bizTeacher.deleteTeacher(id);

            return(Ok(teacher));
        }