public void Update(DalExceptionInformation entity) { _context.Set <ExceptionInformation>().AddOrUpdate(entity.ToOrmExceptionInformation()); }
public void Delete(DalExceptionInformation entity) { var exeption = _context.Set <ExceptionInformation>().Single(e => e.Id == entity.Id); _context.Set <ExceptionInformation>().Remove(entity.ToOrmExceptionInformation()); }