public async Task <IActionResult> DeleteEventItem(int id) { if (id == null) { return(NotFound()); } await Event.DeleteConfirmedAsync(id); return(NoContent()); }
public async Task <IActionResult> DeleteEvent(int Id) { if (Id == null) { return(NotFound()); } await FEventServices.DeleteConfirmedAsync(Id); Message = "Delete Ok"; return(RedirectToAction("Index")); }