public async Task <int> GetLastId(string serviceName) { return(await Task.Run(() => { return service.GetLastId(serviceName).Result; })); }