示例#1
0
        public async Task <IActionResult> UpdateSlot(Guid id, int quantidade)
        {
            if (quantidade > 0)
            {
                await _courseAppService.DisenrollCourse(id);
            }
            else
            {
                await _courseAppService.EnrolCourse(id);
            }

            return(View("Index", await _courseAppService.GetAll()));
        }