public ActionResult GetPurcahseHisotryForCustomer() { var profileId = UserManager.FindById(User.Identity.GetUserId()).UserProfile.Id; var customer = _customerService.FindCustomerBy(profileId); var orders = _customerOrderService.GetOrderByCustomer(customer.Id); return(PartialView("_OrderByCustomer", orders)); }