Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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));
        }