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