Exemplo n.º 1
0
        public override async Task <CommonResponse> ActivityOvertimeCompensated(ActivityOvertimeCompensatedRequest request, ServerCallContext context)
        {
            CommonResponse commonResponse = new CommonResponse();

            try
            {
                await sagaStorage.ActivityOvertimeCompensated(request.ActivityId, request.Compensated);

                commonResponse.IsSuccess = true;
            }
            catch (Exception ex)
            {
                commonResponse.Errors = CombineError(ex);
            }
            return(commonResponse);
        }