Exemplo n.º 1
0
 public SaveResult Save(T instance)
 {
     return(SynchronousTask.GetSync(() => {
         return this.repository.Save(instance);
     }));
 }
Exemplo n.º 2
0
 public T GetById(Guid id)
 {
     return(SynchronousTask.GetSync(() => {
         return this.repository.GetById(id);
     }));
 }
Exemplo n.º 3
0
 public IList <T> GetAll()
 {
     return(SynchronousTask.GetSync(() => {
         return this.repository.GetAll();
     }));
 }
Exemplo n.º 4
0
 public T New()
 {
     return(SynchronousTask.GetSync(() => {
         return this.repository.New();
     }));
 }