Example #1
0
        public void Delete(string Id)
        {
            tblLoanType op = _db.tblLoanTypes.Find(Id);

            _db.tblLoanTypes.Remove(op);
            Save();
        }
Example #2
0
 public void Update(tblLoanType op)
 {
     _db.Entry(op).State = EntityState.Modified;
     _db.Configuration.ValidateOnSaveEnabled = false;
     Save();
     _db.Configuration.ValidateOnSaveEnabled = true;
 }
Example #3
0
 public void Insert(tblLoanType op)
 {
     _db.tblLoanTypes.Add(op);
     Save();
 }