private async void LoadEmployeeTaskData() { if (TimeSheetDataList != null) { TimeSheetDataList = new ObservableCollection <TimeSheetTransposed>(); } try { Tuple <DateTime, DateTime> weekDates = DateExtensions.GetWeekDates(ForDay); _beginDay = weekDates.Item1; var userTaskData = await _timeSheetEntryService.GetTimeSheetDataForPeriod(SelectedEmployee.Code, weekDates.Item1.ToString("yyyyMMdd"), weekDates.Item2.ToString("yyyyMMdd")); mTimeSheetRawList = userTaskData; if (mTimeSheetRawList != null && mTimeSheetRawList.Any()) { TransposeToWeeklyFormat(); } CalculateTotalRecordData(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }