public Price GetSRPByStyle(string STYLE_NUMBER, string BRAND_NAME) { Price PResult = new Price(); List<Price> PriceList = new List<Price>(); PriceList = Accessor.GetPricePerStylenoandBrand(STYLE_NUMBER, BRAND_NAME); if (PriceList.Count > 0) PResult = PriceList[0]; return PResult; }
public void Save(Price Price) { using (DbManager dbm = new DbManager()) { if (Price.RecordNo > 0) { Accessor.Query.Update(dbm,Price); } else { Accessor.Query.Insert(dbm, Price); } } }