public ActionResult Create(Project project)
        {
            if (ModelState.IsValid)
            {
                CreateProjectRequest request = new CreateProjectRequest();
                request.Project = project;

                CreateProjectResponse response = _projectService.CreateProject(request);
                if (response.Success)
                {
                    return RedirectToAction("Index");
                }
            }

            return View(project);
        }
 public ActionResult Create()
 {
     Project project = new Project();
     return View(project);
 }
 private IEnumerable<Person> GetPersonsToAssign(Project project)
 {            
     IList<Person> persons = new List<Person>();
     IEnumerable<Person> allPerson = _personRepository.FindAll();
     foreach (Person p in allPerson)
     {
         if(!project.AssignedPersons.ToDictionary(x => x.Id).ContainsKey(p.Id))
         {
             persons.Add(p);
         }
     }
     return persons;
 }