public Task <DailyMission> GetCurrentDailyMission() => Task.Run(async() => { var currentMission = await _localDatabase.GetDailyMission(DateTime.Today); if (currentMission == null) { currentMission = await _localDatabase.GetFirstNotCompletedDailyMission(); if (currentMission != null) { currentMission.Date = DateTime.Today; await UpdateDailyMission(currentMission); } } return(currentMission); });