public async Task Delete(string id) { UserInfo u = getLoggedInUserInfo(); if (u != null) { await _repository.DeleteAsync(u.usergoogid, id); } }
public async Task Delete(string id) { UserInfo u = getLoggedInUserInfo(); if (u != null) { UserInfo currentUser = (UserInfo)(dynamic)await _repository.GetFirstDocAsync("usergoogid = '" + u.usergoogid + "'"); await _repository.DeleteAsync(currentUser.usergoogid, id); } }
public async Task Delete(string id) { await _repository.DeleteAsync(id); }