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())); }
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())); }