Ejemplo n.º 1
0
        public IActionResult GetByID(int id)
        {
            if (id < 1)
            {
                throw new BadArguementException($"Supplied ID is below starting value (Supplied: {id}, Required: id >= 1).");
            }

            WeaponResource result;

            result = _service.GetWeaponByID(id);

            return(Ok(result));
        }