public static void ActivateRecord <TEntity>( this IOrganizationService organizationService, Guid recordId, int status = Constants.StatusActiveOsv) where TEntity : Entity, new() { string entityLogicalName = new TEntity().LogicalName; organizationService.ActivateRecord(entityLogicalName, recordId, status); }