public EditProjectAttributesViewModel(Models.Project project, bool hasExistingProjectUpdate)
 {
     ProjectTypeID            = project.ProjectTypeID;
     ProjectID                = project.ProjectID;
     HasExistingProjectUpdate = hasExistingProjectUpdate;
     ProjectCustomAttributes  = new ProjectCustomAttributes(project);
 }
 public void UpdateModel(ProjectUpdateBatch projectUpdateBatch, FirmaSession currentFirmaSession)
 {
     ProjectCustomAttributes?.UpdateModel(projectUpdateBatch.ProjectUpdate, currentFirmaSession);
 }
 public IEnumerable <ValidationResult> GetValidationResults(out List <string> errorMessages)
 {
     return(ProjectCustomAttributes.GetValidationResults(out errorMessages));
 }
 public void UpdateModel(Models.ProjectUpdate projectUpdate, Person person)
 {
     ProjectCustomAttributes?.UpdateModel(projectUpdate, person);
 }
 public CustomAttributesViewModel(Models.ProjectUpdate projectUpdate)
 {
     ProjectTypeID           = projectUpdate.ProjectUpdateBatch.Project.ProjectTypeID;
     ProjectUpdateID         = projectUpdate.ProjectUpdateID;
     ProjectCustomAttributes = new ProjectCustomAttributes(projectUpdate);
 }
 public CustomAttributesViewModel(Models.Project project)
 {
     ProjectTypeID           = project.ProjectTypeID;
     ProjectID               = project.ProjectID;
     ProjectCustomAttributes = new ProjectCustomAttributes(project);
 }