Example #1
0
 public IActionResult DeleteEvent([FromBody] string id)
 {
     if (int.TryParse(id, out int eventid))
     {
         if (CalendarProcessor.GetEventById(eventid) != null)
         {
             CalendarProcessor.DeleteEvent(eventid);
         }
     }
     return(RedirectToAction("Schedule", "Agenda"));
 }