/// <summary> /// Insert user into local storage /// </summary> /// <param name="localStorageService"></param> /// <param name="user"></param> /// <param name="error"></param> public static void SaveUser(ILocalStorageService localStorageService, User user, out Error error) { error = Error.NONE; try { localStorageService.SaveUser(user); } catch (Exception ex) { error = Error.LOCALSTORAGE; logger.error(ex.Message); } }