public IActionResult Delete([FromRoute] int id) { try { RecipeIngredientCore recipeIngredientCore = new RecipeIngredientCore(dbContext); recipeIngredientCore.Delete(id); return(Ok("recipeIngredientCore Deleted Succesfully")); } catch (Exception ex) { return(StatusCode((int)HttpStatusCode.InternalServerError, ex)); } }