/// <summary> /// Updates object in database and check what records counts wasn't changed /// </summary> /// <param name="data"></param> public bool UpdateTest(object data) { var count = gateway.LoadCount(data.GetType()); gateway.Save(data); return(count == gateway.LoadCount(data.GetType())); }