コード例 #1
0
        public async Task <UserRoleGetRes> GetUserRoleDetails(UserRoleGetReq userRoleGetReq, string ticket)
        {
            UserRoleGetRes userRoleGetRes = new UserRoleGetRes();

            userRoleGetRes = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceUser:GetUserRoleDetails"), userRoleGetReq, typeof(UserRoleGetRes), ticket);

            return(userRoleGetRes);
        }
コード例 #2
0
ファイル: UserController.cs プロジェクト: dilip07156/CoreAPI
        public async Task <UserRoleGetRes> GetUserRoleDetails([FromBody] UserRoleGetReq request)
        {
            var response = new UserRoleGetRes();

            if (request != null)
            {
                response = await _UserRepository.GetUserRoleDetails(request);

                return(response);
            }
            else
            {
                response.ResponseStatus.Status       = "Failure";
                response.ResponseStatus.ErrorMessage = "Request can not be blank";
                return(response);
            }
        }