put DayOfWeek and Day into the DailyLogs object to help flatten. changed GetTimeLogList to return List<DailyLogs>. #15
22 lines
625 B
C#
22 lines
625 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace Interfaces
|
|
{
|
|
public class TimeLogList
|
|
{
|
|
public TimeLogList()
|
|
{
|
|
TimeLogs = new List<DailyLogs>();
|
|
}
|
|
public DateTime SelectedDate { get; set; }
|
|
public int CalendarWeek { get; set; }
|
|
public int TimeLogCount { get { return TimeLogs.Sum(x => x.LogCount); } }
|
|
public List<DailyLogs> TimeLogs { get; set; }
|
|
public double WeeklyTotal {
|
|
get { return TimeLogs.Sum(x => x.DailyTotal); }
|
|
}
|
|
public float HoursPerWeekMinutes { get; set; }
|
|
}
|
|
} |