Пример #1
0
        public async Task <ActionResult> DeleteList(int savedFilterId, bool option)
        {
            string ReturnURL = "/Logged/MyLists";
            var    id        = Session["userId"].ToString();
            var    token     = Session["token"].ToString();
            var    userId    = 0;

            int.TryParse(Session["userId"].ToString(), out userId);

            await caller.PostJsonWithAuthorization <int>(apiMethods.ListsBaseUrl(), apiMethods.DeleteListById, savedFilterId, token);

            if (option)
            {
                return(Json(ReturnURL));
            }
            else
            {
                return(RedirectToAction("MyLists"));
            }
        }