예제 #1
0
 public IActionResult AddEvents([FromBody] EventsDto eventData,
                                [FromHeader(Name = "id_token")] string googleToken)
 {
     try
     {
         eventsRepository.AddEvents(eventData);
         return(Ok("Added the Event"));
     }
     catch (Exception exp)
     {
         return(NotFound());
     }
 }