public static CustomerPriceMargins UpdatePriceMarginGetHighestMargin(int id, int custClientId, int priceMarginId)
        {
            CustomerPriceMargins margin = new CustomerPriceMargins();

            margin.UpdatePriceMarginAndLoadHighestMargin(id, custClientId, priceMarginId);
            return(margin);
        }
        public static int UpdateCustomerPriceMargin(object marginOBJ)
        {
            CustomerPriceMargins margin = new CustomerPriceMargins();

            margin.Clone(marginOBJ);
            margin.Update();
            return(margin.Id);
        }
 public static void DeleteCustomerPriceMargin(int id)
 {
     CustomerPriceMargins.Delete(id);
 }
 public static List <CustomerPriceMargins> GetListOfCustomerPriceMargins()
 {
     return(CustomerPriceMargins.LoadList());
 }
 public static CustomerPriceMarginsCollection GetCustomerPriceMarginForAllVendors(int customerClientID, int adminClientID, string icao)
 {
     return(CustomerPriceMargins.GetCustomerPriceMarginForAllVendors(customerClientID, adminClientID, icao));
 }
 public static CustomerPriceMarginsCollection GetCustomerPriceMarginByClientIDsAndICAO(int customerClientID, int adminClientID, string icao)
 {
     return(CustomerPriceMargins.GetCustomerPriceMarginByCustClientIDAndICAO(customerClientID, adminClientID, icao));
 }
 public static CustomerPriceMargins GetCustomerPriceMarginByCustClientID(int custClientId)
 {
     return(CustomerPriceMargins.GetCustomerPriceMarginByCustClientID(custClientId));
 }
 public static CustomerPriceMargins GetCustomerPriceMargin(int id)
 {
     return(CustomerPriceMargins.GetCustomerPriceMargin(id));
 }