static void Main(string[] args) { var socect = new WarehouseSocet { Length = 10, Height = 10, MaxWeight = 10, RowBookstand = 1, ShelfBookstand = 10, SocetNumber = 123, UseVolume = 0, UseWeight = 0, Width = 12 }; var rep = new WarehouseSocetRepository(); socect = rep.GetById("55e0816e546c551fb48775ff"); rep.Update(socect); }
public SocetProducts(Product product, WarehouseSocet warehouseSocet) { WarehouseSocetId = new MongoDBRef("WarehouseSocet", warehouseSocet.Id); ProductId = new MongoDBRef("Product", product.Id); this.TimeStamp = DateTime.Now; }
public static BoolResult UpdateWarehouseSocet(WarehouseSocet warehouseSocet) { return ServiceManager.Call<WarehouseSocetClient, BoolResult>(c => c.UpdateWarehouseSocet(warehouseSocet)); }