public Task <int> GetId() { var headers = Request.Headers; var token = ""; foreach (var head in headers) { if (head.Key == "Authorization") { token = head.Value; break; } } return(_userDataProvider.GetId(token)); }
public string GetId(string email) { return(_userDataProvider.GetId(email)); }