diff --git a/Controllers/GoogleCalendarController.cs b/Controllers/GoogleCalendarController.cs index 2cbf092..c576ca5 100644 --- a/Controllers/GoogleCalendarController.cs +++ b/Controllers/GoogleCalendarController.cs @@ -13,7 +13,7 @@ public GoogleCalendarController(IGoogleCalendarService service) } [HttpPost("/")] - public async Task CreateEvent([FromBody] EventModel model) + public async Task CreateEvent([FromQuery] EventModel model) { var createdEvent = await _service.CreateEventAsync(model); return string.Format(MessagePattern, createdEvent.Id); @@ -26,7 +26,7 @@ public async Task Revoke() } [HttpPut("/{eventId}")] - public async Task UpdateEvent(string eventId, [FromBody] EventModel eventModel) + public async Task UpdateEvent(string eventId, [FromQuery] EventModel eventModel) { return await _service.UpdateEventAsync(eventId, eventModel); }