public IHttpActionResult Create(IEnumerable <InstructorWithCoursesIn> instructorsWithCoursesIn)
 {
     if (instructorsWithCoursesIn == null)
     {
         return(new Helpers.ActionResultBuilder
                .CreateActionResult <InstructorWithCoursesIn>(Request, null, System.Net.HttpStatusCode.BadRequest));
     }
     else
     {
         _instructorService.CreateInstructors(instructorsWithCoursesIn);
         return(new Helpers.ActionResultBuilder
                .CreateActionResult <IEnumerable <InstructorWithCoursesIn> >(Request, instructorsWithCoursesIn, System.Net.HttpStatusCode.OK));
     }
 }
 public IHttpActionResult Create([System.Web.Mvc.Bind(Include = "Id,LastName,FirstName,HireDate,Courses")] IEnumerable <InstructorWithCoursesIn> instructorsWithCoursesIn)
 {
     if (instructorsWithCoursesIn == null)
     {
         return(new Helpers.ActionResultBuilder
                .CreateActionResult <InstructorWithCoursesIn>(Request, null, System.Net.HttpStatusCode.BadRequest));
     }
     else
     {
         _instructorService.CreateInstructors(instructorsWithCoursesIn);
         return(new Helpers.ActionResultBuilder
                .CreateActionResult <IEnumerable <InstructorWithCoursesIn> >(Request, instructorsWithCoursesIn, System.Net.HttpStatusCode.OK));
     }
 }