public async Task <IEnumerable <Contact> > GetContacts() { UserInfo u = getLoggedInUserInfo(); if (u != null) { IEnumerable <Contact> lstItems = await _repository.GetDocsAsync(u.usergoogid); return(lstItems); } return(null); }
public async Task <IEnumerable <Product> > GetProducts() { UserInfo u = getLoggedInUserInfo(); if (u != null) { IEnumerable <Product> lstItems = await _repository.GetDocsAsync("usergoogid='" + u.usergoogid + "'"); return(lstItems); } return(null); }