public async Task FillMissingTimeLogsAsync(IDayViewModel day) { var jobId = await jobService.GetJob(day.Date); await day.FillHoursAsync(auth.GetAuthenticationData().Id, jobId); }
private async void FillSingleDay(IDayViewModel dayViewModel) { try { await daysService.FillMissingTimeLogsAsync(dayViewModel); } catch (JobNotFoundException ex) { await dialogService.ShowMessageAsync("Oops...", "Sorry, cannot log working time for this day. Job is not found in ZOHO :( Just relax and drink coffee....\n" + "....and check this problem with your manager.\n" + "Stay cool! ;)\n\n " + "Additional info: " + ex.Message); } }