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