public static ProjectDto LoadProject(int userId, int projectId)
        {
            var projectModel = ServerProjectRepository.GetProject(userId, projectId);
            var projectDto   = ProjectModelConverters.FromModelToDto(projectModel);

            return(projectDto);
        }
        private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
        {
            Loaded -= OnLoaded;

            AppHost appHost = new AppHost();

            appHost.Init();

            //EndpointHost.AppHost.Register(new InMemoryProjectModelRepo());
            var projectModelRepo = EndpointHost.AppHost.TryResolve <IProjectModelRepository>();
            var projectModel     = projectModelRepo.GetProject(478, 174);
            var projectDto       = ProjectModelConverters.FromModelToDto(projectModel);
            var projectVm        = ProjectMVVMConverters.FromModelToViewModel(projectDto);

            ProjectView.DataContext = projectVm;
        }