public string GetUserPresettings(string journalName) { var user = _userInfo.UserId.ToString() + "-" + _userInfo.ProfileId.ToString(); return(_presettingsServ.GetEntity().SingleOrDefault(x => x.User == user && x.JournalName == journalName)?.PresettingsJson); }
public async Task <string> GetUserPresettings(string journalName) { var userId = Guid.Parse(userIdentInfo.Id); return(await Task.Run(() => presettingsServ.GetEntity().SingleOrDefault(x => x.UserId == userId && x.JournalName == journalName)?.PresettingsJson)); }