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
17 lines
426 B
C#
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; }
|
|
}
|
|
} |