Exemple #1
0
        public City_Object GetElementById(System.Guid CityId)
        {
            var objData = mdbContext.WEB_CARONLINE_SP_City_GetByID(CityId).ToList();

            foreach (var obj in objData)
            {
                City_Object objCity = new City_Object();
                objCity.CityId    = (Guid)obj.CityId;
                objCity.CityName  = obj.CityName;
                objCity.objRegion = new Region_Object {
                    RegionName = obj.RegionName
                };
                objCity.IsDeleted = (bool)obj.IsDeleted;
                return(objCity);
            }
            return(null);
        }