Application is working, register and calculate
This commit is contained in:
@ -47,9 +47,18 @@ namespace StockDal
|
||||
", stockMembers);
|
||||
}
|
||||
|
||||
public bool Update(StockMember stockMember)
|
||||
public void UpdateActPrice(int Id, decimal price)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
using IDbConnection db = new SqlConnection(StockDBConnection.ConnectionString);
|
||||
if (db.State == ConnectionState.Closed)
|
||||
db.Open();
|
||||
|
||||
db.Execute(
|
||||
@"UPDATE [dbo].[StockMember]
|
||||
SET ActValue = @val,
|
||||
ActDate = @date
|
||||
WHERE Id = @id
|
||||
", new { val = price, date = DateTime.Today, id = Id });
|
||||
}
|
||||
|
||||
IEnumerable<StockMember> IStockMemberRepository.GetStocks()
|
||||
|
||||
Reference in New Issue
Block a user