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