From 29c2bca0121225fe9a678f0afc28b6a2be01b63b Mon Sep 17 00:00:00 2001 From: Shannon Date: Thu, 19 Nov 2020 22:18:56 +1100 Subject: [PATCH] remove delete relation in relation controller, this is not used and shouldn't really be there if only having access to content. --- .../Controllers/RelationController.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/Umbraco.Web.BackOffice/Controllers/RelationController.cs b/src/Umbraco.Web.BackOffice/Controllers/RelationController.cs index b8d5e1bc20..e9812aa215 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/RelationController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/RelationController.cs @@ -58,20 +58,5 @@ namespace Umbraco.Web.BackOffice.Controllers return _umbracoMapper.MapEnumerable(relations); } - [HttpDelete] - [HttpPost] - public IActionResult DeleteById(int id) - { - var foundRelation = _relationService.GetById(id); - - if (foundRelation == null) - { - return new UmbracoProblemResult("No relation found with the specified id", HttpStatusCode.NotFound); - } - - _relationService.Delete(foundRelation); - - return Ok(); - } } }