Exemplo n.º 1
0
        public AreaModel GetArea(string areaGUID)
        {
            AreaModel area = null;

            if (AreaSubsDict != null)
            {
                area = AreaSubsDict[areaGUID];
            }
            return(area);
        }
Exemplo n.º 2
0
 public void SetDefaultAreaIfNeeded()
 {
     if (string.IsNullOrEmpty(SL.AreaGUID))
     {
         AreaModel area = GetFirstArea();
         if (area != null)
         {
             SL.AreaGUID = area.areaGUID;
         }
     }
     else
     {
         if (GetArea(SL.AreaGUID) == null)
         {
             AreaModel area = GetFirstArea();
             SL.AreaGUID = area != null ? area.areaGUID : string.Empty;
         }
     }
 }
Exemplo n.º 3
0
        public AreaModel GetFirstArea()
        {
            AreaModel firstItem = AreaSubsList != null && AreaSubsList.Count > 0 ? AreaSubsList[0] : null;//SuggestedAreaList != null && SuggestedAreaList.Count > 0 ? SuggestedAreaList[0] : null;

            return(firstItem);
        }