Esempio n. 1
0
        public async Task <bool> SetUserState(UserStateDTO dto)
        {
            try
            {
                string s = JsonConvert.SerializeObject(dto);
                await storage.SetLocalStorageValue <string>("JWT", s);
            }
            catch (Exception ex)
            {
                log.LogException(ex);
                return(false);
            }

            return(true);
        }