예제 #1
0
        public async Task <IActionResult> Delete(int id)
        {
            if (id <= 0)
            {
                NotifyError("id inexistente");
                return(CustomResponse(statusCode: StatusCodes.Status400BadRequest));
            }

            Exam exam = await _examService.DeleteAsync(id);

            if (exam == null)
            {
                return(CustomResponse(statusCode: StatusCodes.Status400BadRequest));
            }

            return(NoContent());
        }
예제 #2
0
        public async Task <IActionResult> Delete(Guid examId)
        {
            await _examService.DeleteAsync(examId);

            return(NoContent());
        }