Exemplo n.º 1
0
        public async Task <ActionResult> DeleteAsync(int id)
        {
            if (!service.NodeTypeExists(id))
            {
                return(NotFound());
            }

            await service.DeleteAsync(id);

            return(NoContent());
        }
Exemplo n.º 2
0
        public async Task <ActionResult> DeleteAsync(int id)
        {
            await service.DeleteAsync(id);

            return(NoContent());
        }