Пример #1
0
 public IActionResult GetEvents(int eventId,
                                [FromHeader(Name = "id_token")] string googleToken)
 {
     try
     {
         if (googleAuth.ProcessRequestAtGoogle(googleToken))
         {
             var eventDetails = eventsRepository.GetEventDetails(eventId);
             return(Ok(eventDetails));
         }
         else
         {
             return(BadRequest());
         }
     }
     catch (Exception exp)
     {
         return(NotFound());
     }
 }