/// <summary>
        /// Functionality for actually sending an order, if it is legal it will be added to the database and added to
        /// the current shoppinglist
        /// </summary>
        /// <param name="order"></param>
        public async void Sendorder(object context)
        {
            if (CanBeSend)
            {
                //Assembles order so it can be send
                AssembleOrder();

                CanBeSend = false;
                await Task.Run(() => OrderInTheMaking.SendOrder());

                //Clears the order and the view
                OrderInTheMaking = new Order(_department);
                ClearOrders(context);
                CanBeSend = true;
                await Task.Run(() => HistoryOrders = UpdateHistoryOrders(1));
            }
        }
 /// <summary>
 /// Assembles order by adding the orderLines and zookeeper chosen in view
 /// </summary>
 private void AssembleOrder()
 {
     OrderInTheMaking.OrderLines = DepOrderList;
     OrderInTheMaking.AttachZookeeperToOrder(ActiveZookeeper);
     OrderInTheMaking.Note = OrderNote.Text;
 }