public List <T> Get <T>(UserContext context) where T : WindowInstanceBase { return(context.As <T>().Where(x => x.UserId == context.Id).ToList()); }
public T GetOrCreateIdUserModel <T>(UserContext context, ObjectId id) where T : ModelBase, new() { return(GetOrCreateIdModel(context.As <T>(), id, obj => obj.Save(context))); }