Sdl.Web.Mvc/Controllers/RegionController.cs
/// <summary>
/// Map and render a region model
/// </summary>
/// <param name="region">The region model</param>
/// <param name="containerSize">The size (in grid units) of the container the region is in</param>
/// <returns>Rendered region model</returns>
Map and render a region model
Map and render a region model
[HandleSectionError(View = "SectionError")]
        public virtual ActionResult Region(RegionModel region, int containerSize = 0)
        {
            SetupViewData(region, containerSize);
            RegionModel model = (EnrichModel(region) as RegionModel) ?? region;
            return View(model.MvcData.ViewName, model);
        }
[ HandleSectionError ( View = " " ) ] public virtual ActionResult Region ( RegionModel region , int containerSize = 0 ) { SetupViewData ( region , containerSize ) ; RegionModel model = ( EnrichModel ( region ) as RegionModel ) ?? region ; return View ( model . MvcData . ViewName , model ) ; }
Map and render a region model
Map and render a region model
Rendered region model
Rendered region model
region
RegionModel
The region model
The region model
containerSize
int
The size (in grid units) of the container the region is in
The size ( in grid units ) of the container the region is in