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

            return(tran);
        }