29 lines
683 B
C#
29 lines
683 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace ASPNET.StarterKit.BusinessLogicLayer
|
|
{
|
|
public class WeekEnding
|
|
{
|
|
public DateTime WeekStart { get; set; }
|
|
public DateTime WeekEnd { get; set; }
|
|
public List<DaysInPeriod> Days { get; set; }
|
|
|
|
public string Name
|
|
{
|
|
get
|
|
{
|
|
return WeekStart.ToString("MM/dd/yyyy") + "-" + WeekEnd.ToString("MM/dd/yyyy");
|
|
}
|
|
}
|
|
}
|
|
public class DaysInPeriod
|
|
{
|
|
public string Name { get; set; }
|
|
public int DayIndex { get; set; }
|
|
public decimal Hours { get; set; }
|
|
|
|
}
|
|
} |