public void Delete(string Id) { tblLoanType op = _db.tblLoanTypes.Find(Id); _db.tblLoanTypes.Remove(op); Save(); }
public void Update(tblLoanType op) { _db.Entry(op).State = EntityState.Modified; _db.Configuration.ValidateOnSaveEnabled = false; Save(); _db.Configuration.ValidateOnSaveEnabled = true; }
public void Insert(tblLoanType op) { _db.tblLoanTypes.Add(op); Save(); }