public ReleaseManagement(IdentityDbContext context, IWebHostEnvironment hostingEnvironment, IUpdateList updateList, ILogger <ReleaseManagement> logger) #endif { _context = context; _hostingEnvironment = hostingEnvironment; _updateList = updateList; _logger = logger; }
public ListController(IRetrieveListById retrieveListById, ICreateList createList, IUpdateList updateList, IDeleteListFlow deleteListFlow) { _retrieveListById = retrieveListById; _createList = createList; _updateList = updateList; _deleteListFlow = deleteListFlow; }
/// <summary> /// Renders the field contents. /// Checks via the NodeId attribute whether to fetch data from another page than the current one. /// </summary> /// <returns> /// A string of field contents (macros not parsed) /// </returns> protected override string GetFieldContents(Item item) { // check if an update has been made to the field, and use the updated value istead IUpdateList updates = UmbracoContext.Current.LiveEditingContext.Updates; ItemUpdate latestUpdate = updates.GetLatest <ItemUpdate>(u => u.NodeId == item.GetParsedNodeId() && u.Field == item.Field); if (latestUpdate != null) { return(latestUpdate.Data as string); //can't use ToString() as a null value will throw an exception } else { return(base.GetFieldContents(item)); } }
public ReleaseManagement(IdentityDbContext context, IHostingEnvironment hostingEnvironment, IUpdateList updateList, ILogger <ReleaseManagement> logger)
public void HeresTheDebt(IUpdateList<Debt> debt) { this.debt = (UpdateBindingList<Debt>)debt; }