minor changes

This commit is contained in:
Paul Schneider 2017-07-15 03:49:06 +02:00
commit 9ee41dda16
7 changed files with 67 additions and 1293 deletions

View file

@ -273,10 +273,14 @@ namespace Yavsc.Controllers
[HttpGet]
public async Task<IActionResult> SetGoogleCalendar(string returnUrl, string pageToken)
{
var calendar = await _calendarManager.GetCalendarsAsync(User.GetUserId(), pageToken);
if (calendar == null)
return new ChallengeResult();
return View(new SetGoogleCalendarViewModel {
ReturnUrl = returnUrl,
Calendars = await _calendarManager.GetCalendarsAsync(User.GetUserId(), pageToken)
Calendars = calendar
});
}