public ActionResult DetailsNull()
        {
            string         Name     = HttpContext.User.Identity.Name;
            CustomerEntity detail   = ManagerCustomer.DetailCustomer(Name);
            string         filePath = "~/Uploads//customer//";

            detail.customer_photo = Path.Combine(filePath + detail.customer_photo);

            return(View(detail));
        }
        public ActionResult Edit(string id)
        {
            ViewBag.trainerList = ManagerTrainer.GetTrainers().ToList();
            ViewBag.planList    = ManagerPlan.Getplans().ToList();

            if (string.IsNullOrEmpty(id))
            {
                return(RedirectToAction("Index", "Customer", null));
            }
            return(View(ManagerCustomer.DetailCustomer(id)));
        }
        public ActionResult Details(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(RedirectToAction("Index", "Customer", null));
            }
            CustomerEntity detail   = ManagerCustomer.DetailCustomer(id);
            string         filePath = "~/Uploads//customer//";

            detail.customer_photo = Path.Combine(filePath + detail.customer_photo);

            return(View(detail));
        }