public ActionResult Create(FormCollection collection, int[] Compentece, int[] Category) { try { // TODO: Add insert logic here ProjectModel project = new ProjectModel(); project.Title = collection["Title"]; project.Date = collection["Date"].AsDateTime(); project.Description = collection["Description"]; project.DtInsert = DateTime.Now; project.CreatorAccount = cookiemanagement.GetCoockieAustetication(); pm.Create(project, Compentece, Category); return(RedirectToAction("Index")); } catch (ArgumentException e) { return(View()); } }