Exemplo n.º 1
0
        public ActionResult GetTransactionsBySupplier(string id) //id: supplier userid
        {
            var userInfo  = UserManager.FindById(id);
            var profileId = userInfo.UserProfile.Id;

            var supplier = _merchantServie.FindSupplierBy(profileId);

            var transactions = _orderProcessingService.GetOrderItemssbyVendor(supplier.Id);

            return(PartialView("_TransactionsByVendor", transactions));
        }
Exemplo n.º 2
0
        public ActionResult GetSalesHisotryForSupplier()
        {
            var profileId = UserManager.FindById(User.Identity.GetUserId()).UserProfile.Id;

            var supplier = _merchantServie.FindSupplierBy(profileId);

            var orders = _orderProcessingService.GetOrderItemssbyVendor(supplier.Id); //GetOrdersByMerchant(supplier.Id);

            //if (orders != null)
            //{
            //    return PartialView("_OrderBySupplier", orders);
            //}
            //else
            //{
            //    return PartialView("");
            //}

            return(PartialView("_OrderBySupplier", orders));
        }