예제 #1
0
        public async Task <IActionResult> OnPostJoinListAsync()
        {
            List <int> Select = AreChecked;

            if (Select.Count() == 0)
            {
                return(RedirectToPage("/Order/Index"));
            }

            if (await _repo.ChangeStatus(Select) == 0)
            {
                return(RedirectToPage("./Error"));
            }

            return(RedirectToPage("/Order/Index"));
        }