示例#1
0
 /// <summary>
 /// Get area by id
 /// If not found then create a new area with the given id
 /// </summary>
 /// <param name="areaId">Area id</param>
 /// <returns></returns>
 public virtual TemplateArea GetArea(string areaId)
 {
     return(Areas.GetOrCreate(areaId, () => new TemplateArea(areaId)));
 }