Example #1
0
        private IActionResult Delete(int ID)
        {
            var isDeleted = repository.DeleteEntity(ID);

            if (isDeleted)
            {
                return(NoContent());
            }
            else
            {
                return(NotFound());
            }
        }