/// <summary> /// Promote a mentor application /// </summary> /// <param name="id"></param> /// <param name="registrationStatusId"></param> /// <returns></returns> public JsonResult Promote(int id, int statusId) { string message = "failed"; // Find the mentor application MentorApplication app = RegistrationHelper.GetMentorApplicationById(ref _db, id); if (app != null) { // Change the application status app.StatusId = statusId; // Save the application _db.SaveChanges(); // Success message = "success"; } return(Json(message)); }