You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
636 B
35 lines
636 B
using WMS_GIRAF_Interface.Data;
|
|
|
|
namespace WMS_GIRAF_Interface.Helper;
|
|
|
|
public class HelperService(MichelinDbContext context)
|
|
{
|
|
public void BeginTransaction(bool bTrans)
|
|
{
|
|
if (!bTrans)
|
|
{
|
|
return;
|
|
}
|
|
|
|
context.Database.BeginTransaction();
|
|
}
|
|
public void CommitTransaction(bool bTrans)
|
|
{
|
|
if (!bTrans)
|
|
{
|
|
return;
|
|
}
|
|
|
|
context.Database.CommitTransaction();
|
|
}
|
|
|
|
public void RollBackTransaction(bool bTrans)
|
|
{
|
|
if (!bTrans)
|
|
{
|
|
return;
|
|
}
|
|
|
|
context.Database.RollbackTransaction();
|
|
}
|
|
}
|