public static DateProjection FromDto(DateProjectionDto dto) { var retVal = new DateProjection(); retVal.UpdateFromDto(dto); return(retVal); }
public static DateProjectionDto ToDto(DateProjection model) { var retVal = new DateProjectionDto(); model.UpdateDto(retVal); return(retVal); }
public static string ToShortDescription(DateProjection proj) { if (proj == null) { return("None"); } switch (proj.ProjectionType) { case EDateProjectionType.MonthlyRelative: return("Monthly Relative"); case EDateProjectionType.YearlyRelative: return("Yearly Relative"); default: return(proj.ProjectionType.ToString()); } }