Ejemplo n.º 1
0
            public Task <InstructorModel> Handle(Execute request, CancellationToken cancellationToken)
            {
                var instructor = _instructorRepository.ObtainById(request.Id);

                if (instructor == null)
                {
                    throw new HandlerException(HttpStatusCode.NotFound, new { message = "dont found instructor" });
                }

                return(instructor);
            }