Ejemplo n.º 1
0
        public async Task <IActionResult> OnGetAsync()
        {
            List <MyProject> MyProjects = await _projectService.GetAllAsync();

            Projects = new List <Project>();

            for (int i = 0; i < MyProjects.Count; i++)
            {
                Projects.Add(
                    new Project()
                {
                    Id                  = MyProjects[i].Id,
                    Title               = MyProjects[i].Title,
                    ShortDescription    = MyProjects[i].ShortDescription,
                    ThumbnailUrl        = MyProjects[i].ThumbnailUrl,
                    IsRepositoryPrivate = MyProjects[i].IsRepositoryPrivate
                }
                    );
            }

            if (Projects != null)
            {
                Projects = Projects.OrderByDescending(x => x.Id).ToList();
            }


            return(Page());
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> OnGetAsync()
        {
            MyProjects = await _myProjectService.GetAllAsync();

            return(Page());
        }