public ActionResult Edit(DeveloperProfileEditViewModel model)
        {
            if (!this.ModelState.IsValid)
            {
                return this.View(model);
            }

            var currentUser = this.GetCurrentUser();

            this.developers.Edit(currentUser.Id, model.GithubProfile, model.TopProjectsLinks, model.IsAvailableForHire);

            this.SetTempDataSuccessMessage("Your developer profile was edited successfully!");

            return this.Redirect("Index");
        }
        public ActionResult Edit()
        {
            var currentUser = this.GetCurrentUser();

            DeveloperProfileEditViewModel model = new DeveloperProfileEditViewModel();

            model.GithubProfile = currentUser.DeveloperProfile.GithubProfile;
            model.TopProjectsLinks = currentUser.DeveloperProfile.TopProjects.Select(p => p.Link).ToList();
            model.IsAvailableForHire = currentUser.DeveloperProfile.IsAvailableForHire.Value;

            return this.View(model);
        }