/// <summary> /// Getting site information /// </summary> /// <param name="strSiteCode"></param> /// <returns></returns> public dsSiteInfo GetSiteInfo(string strSiteCode) { IMasterHandler masterhandler = ServiceContainer.GetService <IMasterHandler>() as IMasterHandler; dsSiteInfo res = new dsSiteInfo(); var siteLst = masterhandler.GetTbm_Site(strSiteCode); if (siteLst.Count == 1) { var siteusageLst = masterhandler.GetSiteBuildingUsage(siteLst[0].BuildingUsageCode); res.doGetTbm_Site = siteLst; res.tbm_BuildingUsage = siteusageLst; } return(res); }