コード例 #1
0
 public EditViewModel(ProjectFirmaModels.Models.ProjectImage projectImage)
 {
     Caption = projectImage.Caption;
     Credit  = projectImage.Credit;
     ProjectImageTimingID = projectImage.ProjectImageTimingID;
     ExcludeFromFactSheet = projectImage.ExcludeFromFactSheet;
 }
コード例 #2
0
 public virtual void UpdateModel(ProjectFirmaModels.Models.ProjectImage projectImage, FirmaSession currentFirmaSession)
 {
     projectImage.Caption = Caption;
     projectImage.Credit  = Credit;
     projectImage.ProjectImageTimingID = ProjectImageTimingID;
     projectImage.ExcludeFromFactSheet = ExcludeFromFactSheet;
 }
コード例 #3
0
ファイル: NewViewModel.cs プロジェクト: sitkatech/alevin
 public override void UpdateModel(ProjectFirmaModels.Models.ProjectImage projectImage, FirmaSession currentFirmaSession)
 {
     base.UpdateModel(projectImage, currentFirmaSession);
     projectImage.FileResourceInfo = FileResourceModelExtensions.CreateNewFromHttpPostedFileAndSave(FileResourceData, currentFirmaSession);
     if (projectImage.Project.ProjectImages.All(x => x.ProjectImageID == projectImage.ProjectImageID))
     {
         projectImage.IsKeyPhoto = true;
     }
 }