Epiworx.Business.Week.FetchWeek C# (CSharp) Method

FetchWeek() static private method

static private FetchWeek ( WeekData data ) : Week
data WeekData
return Week
        internal static Week FetchWeek(WeekData data)
        {
            var result = new Week();

            result.Fetch(data);
            result.MarkOld();

            return result;
        }

Same methods

Week::FetchWeek ( WeekDataCriteria criteria ) : Week

Usage Example

Example #1
0
 public static Week WeekFetch(int weekId)
 {
     return(Week.FetchWeek(
                new WeekDataCriteria
     {
         WeekId = weekId
     }));
 }