public async Task <string> DeleteEvent(int Id) { string Status = string.Empty; var result = data.Delete(Id); Status = result != null ? "Event deleted successfully." : "Failed to delete Event"; return(Status); }