/// <summary> /// Get details about User. /// </summary> /// <param name="oHostSecurityToken">HostSecurityToken obtained when security provider of IWS is called</param> /// <param name="UserIds">Array of user ids</param> /// <returns></returns> public WorkTypeReturnValue GetWorkType(HostSecurityToken oHostSecurityToken, Guid workTypeId) { WorkTypeReturnValue returnValue = null; if (Functions.ValidateIWSToken(oHostSecurityToken)) { oUtilitiesService = new UtilitiesService(); returnValue = oUtilitiesService.GetWorkType(Functions.GetLogonIdFromToken(oHostSecurityToken), workTypeId); } else { returnValue = new WorkTypeReturnValue(); returnValue.Success = false; returnValue.Message = "Invalid Token"; } return(returnValue); }
/// <summary> /// Get details about User. /// </summary> /// <param name="oHostSecurityToken">HostSecurityToken obtained when security provider of IWS is called</param> /// <param name="UserIds">Array of user ids</param> /// <returns></returns> public WorkTypeReturnValue GetWorkType(HostSecurityToken oHostSecurityToken, Guid workTypeId) { WorkTypeReturnValue returnValue = null; if (Functions.ValidateIWSToken(oHostSecurityToken)) { oUtilitiesService = new UtilitiesService(); returnValue = oUtilitiesService.GetWorkType(Functions.GetLogonIdFromToken(oHostSecurityToken), workTypeId); } else { returnValue = new WorkTypeReturnValue(); returnValue.Success = false; returnValue.Message = "Invalid Token"; } return returnValue; }