/// <summary> /// Creates a new support queue. /// </summary> /// <param name="queueName">Name of the queue.</param> /// <param name="queueDescription">The queue description.</param> /// <param name="orderNo">The order no.</param> /// <returns>true if succeeded, false otherwise</returns> public static bool CreateNewSupportQueue(string queueName, string queueDescription, short orderNo) { SupportQueueEntity toInsert = new SupportQueueEntity(); toInsert.QueueDescription = queueDescription; toInsert.QueueName = queueName; toInsert.OrderNo = orderNo; return(toInsert.Save()); }
/// <summary> /// Modifies the support queue definition data. /// </summary> /// <param name="queueID">The queue ID of the queue to modify the definition data of.</param> /// <param name="queueName">Name of the queue.</param> /// <param name="queueDescription">The queue description.</param> /// <param name="orderNo">The order no.</param> /// <returns>true if succeeded, false otherwise</returns> public static bool ModifySupportQueue(int queueID, string queueName, string queueDescription, short orderNo) { SupportQueueEntity toModify = SupportQueueGuiHelper.GetSupportQueue(queueID); if (toModify == null) { // not found return(false); } // set the fields, if they're not changed, the field won't be updated in the db. toModify.QueueName = queueName; toModify.QueueDescription = queueDescription; toModify.OrderNo = orderNo; return(toModify.Save()); }