|
|
@ -302,11 +302,13 @@ namespace Yavsc.Controllers
|
|
|
|
public async Task<IActionResult> SetGoogleCalendar(string returnUrl, string pageToken)
|
|
|
|
public async Task<IActionResult> SetGoogleCalendar(string returnUrl, string pageToken)
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var calendars = await _calendarManager.GetCalendarsAsync(User.GetUserId(), pageToken);
|
|
|
|
var uid = User.GetUserId();
|
|
|
|
return View(new SetGoogleCalendarViewModel {
|
|
|
|
|
|
|
|
ReturnUrl = returnUrl,
|
|
|
|
var calendars = await _calendarManager.GetCalendarsAsync(uid, pageToken);
|
|
|
|
Calendars = calendars
|
|
|
|
return View(new SetGoogleCalendarViewModel {
|
|
|
|
});
|
|
|
|
ReturnUrl = returnUrl,
|
|
|
|
|
|
|
|
Calendars = calendars
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, ValidateAntiForgeryToken]
|
|
|
|
[HttpPost, ValidateAntiForgeryToken]
|
|
|
|