public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id != null)
            {
                MyProject myProject = await _projectService.GetByIdAsync((int)id);

                if (myProject != null)
                {
                    Input = new InputModel();

                    Input.Id                  = myProject.Id;
                    Input.Title               = myProject.Title;
                    Input.ShortDescription    = myProject.ShortDescription;
                    Input.IsRepositoryPrivate = myProject.IsRepositoryPrivate;
                    Input.RepositoryUrl       = myProject.RepositoryUrl;
                    Input.HTMLContent         = myProject.HTMLContent;
                    Input.ShowSlideshow       = myProject.ShowSlideshow;
                    Input.ThumbnailUrl        = myProject.ThumbnailUrl;
                    Input.CurrentStatus       = myProject.CurrentStatus;
                    Input.UsedLanguages       = myProject.UsedLanguages;
                    Input.OtherTechnologies   = myProject.OtherTechnologies;

                    MyProjectImages = myProject.MyProjectImages;

                    if (MyProjectImages != null)
                    {
                        Input.ExistingImagesEdit = new List <ExistingImagesEdit>();
                        foreach (var image in MyProjectImages)
                        {
                            Input.ExistingImagesEdit.Add(new ExistingImagesEdit()
                            {
                                Id = image.Id,
                                SelectedToDelete = false
                            });
                        }
                    }

                    return(Page());
                }
                StatusMessage = "Error: Item not found.";
                return(LocalRedirect("/Admin/MyProjects"));
            }
            StatusMessage = "Error: Item not found.";
            return(LocalRedirect("/Admin/MyProjects"));
        }
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id != null)
            {
                MyProject myProject = await _projectService.GetByIdAsync((int)id);

                if (myProject != null)
                {
                    DeleteId         = myProject.Id;
                    Title            = myProject.Title;
                    ShortDescription = myProject.ShortDescription;

                    return(Page());
                }
            }

            return(LocalRedirect("/Admin/MyProjects"));
        }