public static bool Exists(this BO.Item @this) { using (new zAppDev.DotNet.Framework.Profiling.Profiler("Item", zAppDev.DotNet.Framework.Profiling.AppDevSymbolType.ClassOperation, "Exists")) { var _var0 = @this?.SKU; if (new DSS1_RetailerDriverStockOptimisation.DAL.Repository().GetCount <DSS1_RetailerDriverStockOptimisation.BO.Item>((a) => a.SKU == _var0) > 0) { return(true); } return(false); } }
public static Item POItem(BO.Item item) { return(new Item { ItemID = item.ItemID, Brand = item.Brand, ModelNumber = item.ModelNumber, Description = item.Description, Image = item.Image, Price = item.Price, Quantity = item.Quantity, Categories = from cat in item.Categories select POCategory(cat) }); }
public static Item Item(BO.Item obj) { return(new Item() { Id = obj.Id, Name = obj.Name, SoldDate = obj.SoldDate, SoldPrice = obj.SoldPrice, Image = obj.Image, Amount = obj.Amount, MeasurementUnits = obj.MeasurementUnits, Details = obj.Details, StartPrice = obj.StartPrice, Lud = obj.Lud, Lun = obj.Lun, InD = obj.InD }); }