コード例 #1
0
        public async Task <ActionResult> Delete(int id)
        {
            KanbanContainer container = await _service.Get(id);

            if (container == null)
            {
                return(NotFound());
            }

            await _service.Delete(container);

            return(Ok());
        }
コード例 #2
0
 public IActionResult Delete(Guid id) => Ok(_containerService.Delete(new DeleteContainerCommand()
 {
     Id = id
 }));
 public bool Delete(Guid id) => _containerService.Delete(new DeleteContainerCommand()
 {
     Id = id
 });