// GET: Projects
        public async Task <ActionResult> Index()
        {
            var        userId   = User.Identity.GetUserId();
            UnitOfWork uow      = new UnitOfWork();
            var        projects = uow.Projects.FindBy(e => e.UserId == userId);

            return(PartialView(@"~/Views/Projects/Partial/View.cshtml", ProjectVM.Load(projects)));
        }
        public void RefreshContainer_WhenItemIsAddedToSoureCollection_RevalidatesSelectionOfItemVMWhenLoaded()
        {
            Employee   emp   = new Employee();
            EmployeeVM empVM = new EmployeeVM();

            empVM.InitializeFrom(emp);

            empVM.Load(x => x.Projects);

            emp.AddProjekt();

            empVM.RefreshContainer(x => x.Projects);

            ProjectVM projectVM = empVM.GetValue(x => x.Projects).Single();

            projectVM.Load(x => x.Department);

            ValidationAssert.ErrorMessages(projectVM.GetValidationResult(ValidationResultScope.All), ProjectVM.ValidationError);
        }