Beispiel #1
0
        public async Task <List <T> > GetCollectionsAsync <T>(T filter, string apiPath, bool authorization = true, string resourcepath = "collections", Method methodrest = Method.POST) where T : new()
        {
            var crud = new CrudApi <T>(apiPath, _currentUser, authorization);

            return(await crud.GetCollectionAsync(filter, resourcepath, methodrest));
        }
Beispiel #2
0
        public async Task <bool> DeleteAsync <T>(T model, string apiPath, bool authorization = true) where T : new()
        {
            var crud = new CrudApi <T>(apiPath, _currentUser, authorization);

            return(await crud.DeleteAsync(model));
        }
Beispiel #3
0
        public async Task <T> GetEntityAsync <T>(T filter, string apiPath, bool authorization = true, string resourcepath = "") where T : new()
        {
            var crud = new CrudApi <T>(apiPath, _currentUser, authorization);

            return(await crud.GetEntityAsync(filter, resourcepath));
        }