minor changes
This commit is contained in:
parent
4ecc666d5f
commit
9ee41dda16
7 changed files with 67 additions and 1293 deletions
|
|
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue