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)); }
public async Task <Response> SetCookieForAccount(string cookie, Account account) { return(await accountBal.SetCookie(cookie, account)); }