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)); }
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)); }