public static PriceMargins GetPriceMargin(int id)
        {
            PriceMargins margin = new PriceMargins(id);

            margin.PriceMarginTiers = new PriceMarginTiersCollection();
            margin.PriceMarginTiers.LoadByPriceMarginID(id);
            return(margin);
        }
        public static int UpdatePriceMargin(object marginOBJ)
        {
            PriceMargins margin = new PriceMargins();

            margin.Clone(marginOBJ);
            margin.Update();
            return(margin.Id);
        }
 public static void DeletePriceMargin(int id)
 {
     PriceMargins.DeletePriceMargin(id);
 }
 public static List <PriceMargins> GetPriceMarginsByAdmin(int adminId)
 {
     return(PriceMargins.LoadListByAdmin(adminId));
 }
 public static List <PriceMargins> GetListOfPriceMargins()
 {
     return(PriceMargins.LoadList());
 }