예제 #1
0
        public IHttpActionResult PostBulkParentStudent(UserDto user_parent, UserDto user_student)
        {
            if (ModelState.IsValid != true)
            {
                return(BadRequest(ModelState));
            }
            string result = db.AddBulkParentStudent(user_parent, user_parent.Password, user_student, user_student.Password);

            if (result.Contains("successfully"))
            {
                return(Ok(result));
            }
            return(Content(HttpStatusCode.NotFound, result));
        }