using SteamWare; using System.Collections.Generic; using System.Web.Http; namespace MP_MAG.Controllers { public class ReportConfController : ApiController { #region Public Methods /// /// Restituisce un array JSon x le conf dei report /// GET: api/PrintQueueConf /// /// lista oggetto Json in formato SteamwareSDK.queueConf public List Get() { List answ = MagData.MagDataLayer.man.reportConfJson; // se vuoto... creo! if (answ.Count == 0) { SteamWare.Reports.reportConf currConf = new SteamWare.Reports.reportConf() { name = "none", template = "none.rdlc" }; answ.Add(currConf); } return answ; } #endregion Public Methods } }