/// <summary> /// Creates a new blank PurchaseOrder /// </summary> /// <param name="authToken">AuthorizationToken to use</param> /// <param name="name">Name of the PurchaseOrder</param> /// <param name="displayName">DisplayName of the PurchaseOrder</param> /// <param name="orderNumber">PurchaseOrder number</param> /// <param name="date">PurchaseOrder date</param> /// <returns></returns> public static async Task <PurchaseOrder> Create(AuthorizationToken authToken, string name, string displayName, string orderNumber, DateTime date) { dynamic extraProps = new { PurchaseOrderNumber = orderNumber, PurchaseOrderDate = date }; return(await TypeProjectionController.CreateBlankObject <PurchaseOrder>(authToken, name, displayName, extraProps)); }
/// <summary> /// Creates a new HardwareAsset with the specified parameters. /// </summary> /// <param name="authToken">AuthorizationToken to use</param> /// <param name="model">Model of the asset</param> /// <param name="manufacturer">Manufacturer of the asset</param> /// <param name="assetTag">Asset tag</param> /// <param name="serialNumber">Asset's serial number</param> /// <returns></returns> public static async Task <HardwareAsset> Create(AuthorizationToken authToken, string model, string manufacturer, string assetTag, string serialNumber) { dynamic extraProps = new { Model = model, Manufacturer = manufacturer, AssetTag = assetTag, SerialNumber = serialNumber, HardwareAssetID = assetTag }; return(await TypeProjectionController.CreateBlankObject <HardwareAsset>(authToken, assetTag, assetTag, extraProps)); }
/// <summary> /// Creates a new blank Location /// </summary> /// <param name="authToken">AuthorizationToken to use</param> /// <param name="name">Name of the Location</param> /// <param name="displayName">DisplayName of the Location</param> /// <returns></returns> public static async Task <Location> Create(AuthorizationToken authToken, string name, string displayName) { return(await TypeProjectionController.CreateBlankObject <Location>(authToken, name, displayName)); }