public ActionResult UpdateProfile(string username, string summary, string previousExperience, string degree, string contactInfo, string skills, string interests, HttpPostedFileBase photo, HttpPostedFileBase resume, HttpPostedFileBase coverLetter) { if (!ModelState.IsValid) { return(View("UpdateProfile")); } UploadFiles(username, photo, resume, coverLetter); bool updateSuccess = studentDAL.UpdateStudentUser(username, summary, previousExperience, degree, contactInfo, skills, interests); if (updateSuccess) { return(View("Success")); } else { return(View("Fail")); } }