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!")); }
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!")); }