public virtual JsonResult Destroy([DataSourceRequest] DataSourceRequest request, EventViewModel appointment) { if (ModelState.IsValid) { eventsService.Delete(appointment, ModelState); } return(Json(new[] { appointment }.ToDataSourceResult(request, ModelState))); }
public async Task <IActionResult> Delete(string id) { await _eventService.Delete(id); return(Ok(new { Success = true })); }
public void Delete(int Id) { EventsService.Delete(Id); }