Skip to content

Instantly share code, notes, and snippets.

@jbreuer
jbreuer / FeedbackController.cs
Created April 4, 2024 15:01
Umbraco UI Builder + Web API
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using NPoco;
using Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations;
using Umbraco.Cms.Infrastructure.Scoping;
using Umbraco.Cms.Web.Common.Controllers;
namespace UmbracoProject;
public class FeedbackController : UmbracoApiController
@sitereactor
sitereactor / BulkController.cs
Created February 25, 2016 09:35
Example of an Umbraco Backoffice controller used to do a bulk upgrade of certain content items
using System.Net;
using System.Net.Http;
using Umbraco.Web.WebApi;
namespace Example.Controllers
{
/// <summary>
/// Protectec Backoffice controller - Users must be logged in to call this
/// Url: /umbraco/backoffice/api/bulk/PostPerformBulkUpdate
/// </summary>