public IHttpActionResult DeleteParentFromStudent(string id, string parentId) { if (studentsService.ExistsID(id) == false || parentsService.ExistsID(parentId) == false) { return(NotFound()); } if (studentsService.StudentHasParent(id, parentId) == false) { return(BadRequest("Student does not have that parent in his parent list")); } return(Ok(studentsService.DeleteParentFromStudent(id, parentId))); }