/// <summary> /// Constructor for building a new simple object with the POCO class /// </summary> public ProjectExemptReportingYearSimple(ProjectExemptReportingYear projectExemptReportingYear) : this() { ProjectExemptReportingYearID = projectExemptReportingYear.ProjectExemptReportingYearID; ProjectID = projectExemptReportingYear.ProjectID; CalendarYear = projectExemptReportingYear.CalendarYear; IsExempt = ModelObjectHelpers.IsRealPrimaryKeyValue(projectExemptReportingYear.ProjectExemptReportingYearID); CalendarYearDisplay = MultiTenantHelpers.FormatReportingYear(projectExemptReportingYear.CalendarYear); }
public static void DeleteProjectExemptReportingYear(this IQueryable <ProjectExemptReportingYear> projectExemptReportingYears, ProjectExemptReportingYear projectExemptReportingYearToDelete) { DeleteProjectExemptReportingYear(projectExemptReportingYears, new List <ProjectExemptReportingYear> { projectExemptReportingYearToDelete }); }