/// <summary>
        /// delets the entry of your order.Equivalent to DeleteOrderForSalaryDeduction();
        /// </summary>
        /// <param name="order">The order.</param>
        /// <param name="storageAccountUrl">The storage account URL.</param>
        /// <param name="storageAccountKey">The storage account key.</param>
        /// <param name="serviceBusConnectionString">The service bus connection string.</param>
        public static void DeleteOrderforSalaryDeduction(Order order, string storageAccountUrl, string storageAccountKey, string serviceBusConnectionString)
        {
            SalaryDeduction salaryDeduction = new SalaryDeduction();
            var             dayId           = order.Date.Date.DayOfYear;

            salaryDeduction = JsonConvert.DeserializeObject <SalaryDeduction>(GetDocument("salarydeduction", "orders_" + dayId.ToString() + "_" + DateTime.Now.Year + ".json", storageAccountUrl, storageAccountKey));
            var collection = salaryDeduction.Order.FindAll(x => x.Name == order.Name);
            var temp       = collection.FindAll(x => x.CompanyStatus == order.CompanyStatus);

            salaryDeduction.Order.Remove(temp[temp.Count - 1]);

            try
            {
                PutDocument("salarydeduction", "orders_" + dayId.ToString() + "_" + DateTime.Now.Year.ToString() + ".json", JsonConvert.SerializeObject(salaryDeduction), "q.planbutlerupdatesalary", serviceBusConnectionString);
            }
            catch // enters if blob dont exist
            {
                List <Order> orders = new List <Order>();

                salaryDeduction.Daynumber = dayId;
                salaryDeduction.Name      = "SalaryDeduction";

                orders.Add(order);
                salaryDeduction.Order = orders;

                PutDocument("salarydeduction", "orders_" + dayId.ToString() + "_" + DateTime.Now.Year.ToString() + ".json", JsonConvert.SerializeObject(salaryDeduction), "q.planbutlerupdatesalary", serviceBusConnectionString);
            }
        }
        /// <summary>
        /// Uploads the orderfor salary deduction for another day.
        /// </summary>
        /// <param name="order">The order.</param>
        /// <param name="day">The day.</param>
        /// <param name="storageAccountUrl">The storage account URL.</param>
        /// <param name="storageAccountKey">The storage account key.</param>
        /// <param name="serviceBusConnectionString">The service bus connection string.</param>
        /// <returns></returns>
        public static async Task <HttpStatusCode> UploadOrderforSalaryDeductionForAnotherDay(Order order, DateTime day, string storageAccountUrl, string storageAccountKey, string serviceBusConnectionString)
        {
            SalaryDeduction salaryDeduction = new SalaryDeduction();

            order.Date = day;
            int dayNumber = order.Date.DayOfYear;

            try
            {
                salaryDeduction = JsonConvert.DeserializeObject <SalaryDeduction>(GetDocument("salarydeduction", "orders_" + dayNumber.ToString() + "_" + DateTime.Now.Year + ".json", storageAccountUrl, storageAccountKey));
                salaryDeduction.Order.Add(order);
                HttpStatusCode status = await PutDocument("salarydeduction", "orders_" + dayNumber.ToString() + "_" + DateTime.Now.Year.ToString() + ".json", JsonConvert.SerializeObject(salaryDeduction), "q.planbutlerupdatesalary", serviceBusConnectionString);

                return(status);
            }
            catch // enters if blob dont exist
            {
                List <Order> orders = new List <Order>();

                salaryDeduction.Daynumber = dayNumber;
                salaryDeduction.Name      = "SalaryDeduction";

                orders.Add(order);
                salaryDeduction.Order = orders;

                HttpStatusCode status = await PutDocument("salarydeduction", "orders_" + dayNumber.ToString() + "_" + DateTime.Now.Year.ToString() + ".json", JsonConvert.SerializeObject(salaryDeduction), "q.planbutlerupdatesalary", serviceBusConnectionString);

                return(status);
            }
        }