Example #1
0
        public static void TestRatingTypeAddUpdate(CuratedRatingService.CuratedRatingServiceClient client)
        {
            var request = new RatingTypeAddUpdateRequest();

            request.RatingType = new RatingType();
            request.RatingType.RatingTypeId          = 471380170;
            request.RatingType.RatingTypeName        = "62d8ef7c-ec73-4127-aa4e-98b79675ab47";
            request.RatingType.RatingTypeDescription = "4d578f9f-6f0a-4293-a93f-8b6f141cf809";
            var response = client.RatingTypeAddUpdate(request);
        }
        public override async Task <RatingTypeAddUpdateResponse> RatingTypeAddUpdate(RatingTypeAddUpdateRequest request, ServerCallContext context)
        {
            var res = await _executor.ExecuteAsync(new RatingTypeAddUpdateQuery
            {
                RatingType = request.RatingType.ToEntity()
            }).ConfigureAwait(false);

            var returnVal = res;

            var result = new RatingTypeAddUpdateResponse
            {
            };

            return(result);
        }