public virtual JsonResult Destroy([DataSourceRequest] DataSourceRequest request, EventViewModel appointment)
        {
            if (ModelState.IsValid)
            {
                eventsService.Delete(appointment, ModelState);
            }

            return(Json(new[] { appointment }.ToDataSourceResult(request, ModelState)));
        }
Пример #2
0
        public async Task <IActionResult> Delete(string id)
        {
            await _eventService.Delete(id);

            return(Ok(new { Success = true }));
        }
Пример #3
0
 public void Delete(int Id)
 {
     EventsService.Delete(Id);
 }