Ejemplo n.º 1
0
        public IActionResult Delete(string id)
        {
            var spec = _service.gettingById(id);

            if (spec == null)
            {
                return(NotFound());
            }
            _commands.DeletingById(spec.Id);

            return(NoContent());
        }