FlexitimeTracker/DataCenter_Windows/WindowsDataCenter/Interfaces/TimeLogList.cs
Chris.Watts90@outlook.com 19b718a946 changed IRepository to accept a DateTime for the arg, instead of an int for calendar week/year.
added SelectedDate to the TimeLog object.
changed the timelog controller to accept a datetime as an arg, instead of the previous calendarweek/year args.
This kills two birds with one arg.
Changed the goToTimeLogs function to accept an args object to allow passing of datetime SelectedDate parameter.
removed console.logs to tidy code a little.
corrected some "undefined" parameter bugs/errors.
#5
2017-02-10 12:07:02 +00:00

17 lines
426 B
C#

using System;
using System.Collections.Generic;
namespace Interfaces
{
public class TimeLogList
{
public TimeLogList()
{
TimeLogs = new List<TimeLog>();
}
public DateTime SelectedDate { get; set; }
public int CalendarWeek { get; set; }
public int TimeLogCount { get { return TimeLogs.Count; } }
public List<TimeLog> TimeLogs { get; set; }
}
}