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)); }
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)); }
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)); }