public void Save() { var instance = new BuyOrders { BuyPrice = BuyPrice, Id = Id, NumbersToBuy = NumbersToBuy, BuyComment = BuyComment, BuyDate = BuyDate }; instance.Update(); }