Esempio n. 1
0
 public void DeleteTran(TblTransection tran)
 {
     tran.Del = false;
     _db.TblTransections.Update(tran);
     _db.SaveChanges();
 }
Esempio n. 2
0
 public void CreateTran(TblTransection tran)
 {
     _db.TblTransections.Add(tran);
     _db.SaveChanges();
 }
Esempio n. 3
0
 public void UpdateTran(TblTransection tran)
 {
     _db.TblTransections.Update(tran);
     _db.SaveChanges();
 }
Esempio n. 4
0
        public TblTransection GetTranById(int id)
        {
            TblTransection tran = _db.TblTransections.FirstOrDefault(x => x.Id == id);

            return(tran);
        }