public static IUser Create() { var u = new StoreUser(); var db = Store.Database; u.Id = (int) db.HashIncrement("TypeCounters", "IUser"); db.HashSet($"/IUser/{u.Id}", "Created", DateTime.UtcNow.ToEpochTime()); return u; }
public static IUser Get(int id) { var u = new StoreUser(); u._id = id; return u; }