public ActionResult Edit(Project postedProject) { ProjectRepository.Project.AppName = postedProject.AppName; ProjectRepository.Project.CompanyName = postedProject.CompanyName; ProjectRepository.Project.InstallDirectory = postedProject.InstallDirectory; return RedirectToAction("Index"); }
private static Project BuildDefaultProject() { var project = new Project { AppName = "App01", CompanyName = "Company01", InstallDirectory = "Folder01" }; return project; }
public static string Save(Project project) { if (project == null) throw new ArgumentNullException("project"); return JsonConvert.SerializeObject(project); }