Esempio n. 1
0
            public async Task <InstructorModel> Handle(Eject request, CancellationToken cancellationToken)
            {
                var instructor = await _instructorRepository.ObtainForId(request.Id);

                if (instructor == null)
                {
                    throw new HandlerException(HttpStatusCode.NotFound, new { messaje = "Not Found Instructor" });
                }
                return(instructor);
            }