New editwindow , before connection
This commit is contained in:
@ -20,6 +20,15 @@ namespace StockDAL
|
||||
}
|
||||
}
|
||||
|
||||
public StockMember GetStockMember(int stockMemberId)
|
||||
{
|
||||
using var context = new StockContext();
|
||||
var entity = (from stk in context.Stocks
|
||||
where stk.Id == stockMemberId
|
||||
select stk).FirstOrDefault();
|
||||
return entity;
|
||||
}
|
||||
|
||||
public void UpdateActualPrice(int id, decimal price)
|
||||
{
|
||||
using var context = new StockContext();
|
||||
|
||||
Reference in New Issue
Block a user