Пример #1
0
 /// <summary>
 /// Creates a new region.
 /// </summary>
 /// <param name="api">The current api</param>
 /// <param name="typeId">The page type id</param>
 /// <param name="regionId">The region id</param>
 /// <returns>The new region value</returns>
 public static object CreateRegion(IApi api, string typeId, string regionId)
 {
     using (var factory = new ContentFactory(api.PageTypes.GetAll())) {
         return(factory.CreateDynamicRegion(typeId, regionId));
     }
 }