示例#1
0
        public async Task <Response> Logout(string cookie)
        {
            var account = await accountBal.GetAccountByCookie(cookie);

            if (account is null)
            {
                return(await Task.FromResult(new Response("Success", true, 0, null)));
            }
            return(await accountBal.SetCookie(null, account.Obj as Account));
        }
示例#2
0
 public async Task <Response> SetCookieForAccount(string cookie, Account account)
 {
     return(await accountBal.SetCookie(cookie, account));
 }