public IHttpActionResult AddStudent(AddStudentDTO std) { if (ModelState.IsValid) { var CreatedStd = stdbl.Createstd(std); return(Ok(CreatedStd)); } else { return(BadRequest("Data is not valid")); } }