public ProjectInfo ToProjectInfo() { var result = new ProjectInfo(); Csla.Data.DataMapper.Map(this, result); return result; }
public ProjectData(ProjectInfo project) : this() { this.ProjectId = project.ProjectId; this.Description = project.Description; this.IsActive = project.IsActive; this.IsArchived = project.IsArchived; this.Name = project.Name; this.CreatedBy = new UserData(project.CreatedBy, string.Empty, string.Empty); this.CreatedDate = project.CreatedDate; this.ModifiedBy = new UserData(project.ModifiedBy, string.Empty, string.Empty); this.ModifiedDate = project.ModifiedDate; }