public void Delete(Problem problem) { _databaseContext.Entry(problem).State = EntityState.Deleted; }
public Problem Update(Problem problem) { this._databaseContext.Entry(problem).State = EntityState.Modified; return problem; }
public Problem Add(Problem problem) { this._databaseContext.Problems.Add(problem); this._databaseContext.SaveChanges(); return problem; }