private void CreateNewInvoice(ServiceContext context)
        {
            DataService             dataService     = new DataService(context);
            QueryService <Account>  queryService    = new QueryService <Account>(context);
            QueryService <Customer> customerService = new QueryService <Customer>(context);
            string          query         = "Select * from Customer where Id='" + id + "'";
            List <Customer> queryResponse = customerService.ExecuteIdsQuery(query).ToList <Customer>();
            Invoice         invoice       = null;

            if (queryResponse != null)
            {
                invoice = Inputs.CreateInvoice(dataService, queryService, queryResponse[0]);
                ViewData["InvoiceInfo"] = "Invoice with ID:" + invoice.Id + " created successfully";
            }
            else
            {
                ViewData["InvoiceInfo"] = "Invalid Customer information";
            }
            ViewData["CustomerId"] = id;
        }