public ActionResult Edit(Guid projectId)
 {
     var employeeList = Query(new GetEmployeeListQuery());
     var employeesInProject = Query(new GetEmployeeFromProjectQuery(projectId));
     var vm = new ProjectViewModel(Query(new GetProjectQuery(projectId)));
     vm.ProjectForm.List = employeesInProject;
     vm.ProjectForm.EmployeesList = employeeList;
     return View(vm);
 }
        public ActionResult Create(ProjectForm projectForm)
        {
            var vm= new ProjectViewModel(projectForm);

            if (!ModelState.IsValid)
            {
                return View(vm);
            }

            var cmdResult = ExecuteCommand(new CreateProjectCommand(projectForm));

            if(cmdResult.Success) return RedirectToAction("Edit","Project", new {projectId=cmdResult.Result});
            return View(vm);
        }
 public ActionResult Create()
 {
     var vm = new ProjectViewModel();
     return View(vm);
 }