public List <Domain.BE.PurchaseOrder> GetPurchaseOrderbyCustomerId(int customerId) { try { PurchaseOrderRepository repo = new PurchaseOrderRepository(context); return(repo.FindByCustomerId(customerId)); } catch (Exception) { throw; } }