Пример #1
0
        public Course GetCourse(int id)
        {
            GetCourseMessage message = new GetCourseMessage {
                Input = id
            };

            MvcContrib.Bus.Send(message);

            return(message.Result.Data as Course);
        }
Пример #2
0
        public Course GetCourse(int id)
        {
            GetCourseMessage message = new GetCourseMessage { Input = id };
            MvcContrib.Bus.Send(message);

            return message.Result.Data as Course;
        }