public bool Delete(IDomain obj) { string key = obj.CreateKey(); bool result = this.db.HashDelete(key, obj.Id); return(result); }
public bool Save(IDomain obj) { string json = JsonConvert.SerializeObject(obj); string key = obj.CreateKey(); bool result = this.db.HashSet(key, obj.Id, json); return(result); }