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