public async Task <UserRoleSetRes> SetUserRoleDetails(UserRoleSetReq userRoleSetReq, string ticket) { UserRoleSetRes userRoleSetRes = new UserRoleSetRes(); userRoleSetRes = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceUser:SetUserRoleDetails"), userRoleSetReq, typeof(UserRoleSetRes), ticket); return(userRoleSetRes); }
public async Task <UserRoleSetRes> SetUserRoleDetails([FromBody] UserRoleSetReq request) { var response = new UserRoleSetRes(); if (request != null) { response = await _UserRepository.SetUserRoleDetails(request); return(response); } else { response.ResponseStatus.Status = "Failure"; response.ResponseStatus.ErrorMessage = "Request can not be blank"; return(response); } }