public async Task <int> AddTimeReportFromIOT(IOTViewModel viewModel)
        {
            TimeReport timeReport = viewModel.ToTimeReport(viewModel.UserId);
            CreateTimeReportUpdateStrategy timeReportUpdateStrategy = (CreateTimeReportUpdateStrategy)(await GetTimeReportUpdateStrategy(timeReport));

            timeReportUpdateStrategy.Update();
            return(timeReportUpdateStrategy.NewTimeReportId);
        }
        public async Task <int> AddTimeReport(DayTimeReportViewModel viewModel)
        {
            TimeReport timeReport = viewModel.ToTimeReport(await GetUserId());

            timeReport.Id = GlobalConstants.NullId;
            CreateTimeReportUpdateStrategy timeReportUpdateStrategy = (CreateTimeReportUpdateStrategy)(await GetTimeReportUpdateStrategy(timeReport));

            timeReportUpdateStrategy.Update();
            return(timeReportUpdateStrategy.NewTimeReportId);
        }