public async Task <ActionResult> Delete(int id) { KanbanContainer container = await _service.Get(id); if (container == null) { return(NotFound()); } await _service.Delete(container); return(Ok()); }
public IActionResult Delete(Guid id) => Ok(_containerService.Delete(new DeleteContainerCommand() { Id = id }));
public bool Delete(Guid id) => _containerService.Delete(new DeleteContainerCommand() { Id = id });