public async Task <ActionResult> PickLocation(PickCustomerLocationViewModel CustomerLocation)
        {
            if (!ModelState.IsValid)
            {
                return(View(CustomerLocation));
            }

            if (string.IsNullOrEmpty(CustomerLocation.ContractId))
            {
                return(HttpNotFound());
            }

            string url      = string.Format("api/HourlyContract/{0}", CustomerLocation.ContractId);
            var    contract = await GetResourceAsync <ServiceContractPerHour>(url);

            if (contract == null)
            {
                return(HttpNotFound());
            }

            var result = await PostResourceAsync <bool>("api/HourlyContract/PickCustomerLocation", CustomerLocation);

            if (result.StatusCode == HttpStatusCode.OK && result.Result)
            {
                return(RedirectToAction("SystemicPaymentMethod", new { id = CustomerLocation.ContractId }));
            }

            return(View(CustomerLocation));
        }
        public ActionResult PickLocation(string id)
        {
            var model = new PickCustomerLocationViewModel()
            {
                ContractId = id
            };

            return(View(model));
        }