public ActionResult ProjectsDeleteConfirmed(Guid id)
        {
            ProjectsViewModel.Project project = _context.Projects.Find(id);

            _context.Projects.Remove(project);
            _context.SaveChanges();
            return(RedirectToAction("Index"));
        }
 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));
 }
 // GET: Notifications/Delete/5
 public ActionResult Remove(Guid?id)
 {
     if (id == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     ProjectsViewModel.Project project = _context.Projects.Find(id);
     if (project == null)
     {
         return(HttpNotFound());
     }
     return(View(project));
 }