//public PartialViewResult customerpview(string DeliverTime)
        //{
        //    if (DeliverTime != null)
        //    {
        //        List<customerviewmodel> allOrder = new List<customerviewmodel>();
        //        Ankapurservices objCrd = new Ankapurservices();
        //        var modelCust = objCrd.customerdetails(DeliverTime);
        //        //ViewBag.orderhistory = Odtails();
        //        foreach (var i in modelCust)
        //        {
        //            string phoneno = i.phoneNo;
        //            var od = objCrd.custreports(phoneno).ToList();;
        //            allOrder.Add(new customerviewmodel { custDetails = i, orderDetails = od });
        //            ViewBag.custdetails = modelCust;
        //            ViewBag.orderdetails = od;
        //        }
        //           return PartialView("customerpview", allOrder);
        //        //  return PartialView("customerpview");
        //    }
        //    return PartialView("customerpview", null);
        //}


        public PartialViewResult customerpview(string DeliverTime, string restcode)
        {
            try
            {
                if (DeliverTime != null)
                {
                    List <customerviewmodel> allOrder = new List <customerviewmodel>();
                    Ankapurservices          objCrd   = new Ankapurservices();
                    var modelCust = objCrd.customerdetails(DeliverTime, restcode);
                    //ViewBag.orderhistory = Odtails();
                    ViewBag.restcode = restcode;
                    return(PartialView("customerpview", modelCust));
                    //  return PartialView("customerpview");
                }
                return(PartialView("customerpview", null));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }