public ActionResult CourseFeedback(LOLAWebsite.Models.Course_Feedback model) { Course @course = db.Courses.Find((int)TempData["courseid"]); if (model.Id != null) { var thisFeedback = new Course_Feedback() { Course_ID = @course.Course_ID, Course_Marketing = model.Course_Marketing, Course_Rating = model.Course_Rating, Course_Registration_Type = model.Course_Registration_Type, Student_Comment = model.Student_Comment, Id = User.Identity.GetUserId(), }; db.Course_Feedback.Add(thisFeedback); db.SaveChanges(); } return View("Changes Saved"); }
public ActionResult EventFeedback(LOLAWebsite.Models.Event_Feedback model) { Event @event = db.Events.Find((int)TempData["eventid"]); if (model.Id != null) { var thisFeedback = new Event_Feedback() { Event_ID = @event.Event_ID, Event_Marketing = model.Event_Marketing, Event_Rating = model.Event_Rating, Event_Registration_Type = model.Event_Registration_Type, Student_Comment = model.Student_Comment, Id = User.Identity.GetUserId(), }; db.Event_Feedback.Add(thisFeedback); db.SaveChanges(); } return View("Changes Saved"); }
public ActionResult PersonalInfo(LOLAWebsite.Models.ApplicationUser model) { ViewBag.Message = "Changes Made."; return View(); }