Beispiel #1
0
        public IActionResult Delete(int IdP)
        {
            var TypeAux = TypeList.GetType(IdP);

            if (TypeAux == null)
            {
                return(NotFound());
            }
            if (!TypeList.RemoveType(IdP))
            {
                return(BadRequest());
            }
            return(Ok("Type removed!"));
        }