Exemple #1
0
 public Project ToProjectFromSettingsViewModel(SettingsViewModel settingsViewModel)
 {
     return new Project()
         {
             ProjectId = settingsViewModel.ProjectId,
             ProjectName = settingsViewModel.ProjectName,
             Description = settingsViewModel.Description
         };
 }
 public ActionResult Settings(long projectId)
 {
     var project = _projectLogic.Get(projectId);
     var settingsViewModel = new SettingsViewModel
         {
             ProjectName = project.ProjectName,
             Description = project.Description,
             ProjectId = project.ProjectId
         };
     return PartialView(settingsViewModel);
 }