public ActionResult Edit([Bind(Include = "NotificationId,Title,NotificationType,Controller,Action,UserId,IsDismissed")] Notification notification) { if (ModelState.IsValid) { db.Entry(notification).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(notification)); }
public ActionResult Change([Bind(Include = "Id,CreatedOn, Name, TeamState,Projects")] TeamViewModel.Team team) { if (ModelState.IsValid) { _context.Entry(team).State = EntityState.Modified; _context.SaveChanges(); return(RedirectToAction("Index")); } return(View(team)); }
public ActionResult Change([Bind(Include = "Id,CreatedOn,Name, Description, projectMembers,ProjectOwner,AddedToProject, ProjectState,Users,Teams,ProjectTasks")] ProjectsViewModel.Project project) { if (ModelState.IsValid) { _context.Entry(project).State = EntityState.Modified; _context.SaveChanges(); return(RedirectToAction("Index")); } return(View(project)); }