public void Update(ISRSettings isrSettings) { lock (_session) { _session.Store(isrSettings); } }
public void Delete(string salesArea) { lock (_session) { ISRSettings isrSettings = _session.Query <ISRSettings>().Where(s => s.SalesArea == salesArea).First(); _session.Delete <ISRSettings>(isrSettings); } }