public ActionResult Edit(int id, FormCollection collection, int[] Compentece, int[] Category) { try { ProjectModel project = new ProjectModel(); project.Title = collection["Title"]; project.Date = collection["Date"].AsDateTime(); project.Description = collection["Description"]; project.ProjectID = collection["ProjectID"].AsInt(); project.DtInsert = DateTime.Now; project.CreatorAccount = cookiemanagement.GetCoockieAustetication(); pm.Update(project, Compentece, Category); return(RedirectToAction("Details", new { id = project.ProjectID })); } catch { return(View()); } }