public IHttpActionResult AddAllClass([FromBody] List <Models.Class> lstclass)
 {
     try
     {
         if (ModelState.IsValid)
         {
             return(Content(HttpStatusCode.OK, new DataModel()
             {
                 HttpStatusCode = HttpStatusCode.OK,
                 Exception = null,
                 Data = professorService.PostAllClass(lstclass)
             }));
         }
         else
         {
             return(BadRequest(ModelState));
         }
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }