Пример #1
0
        public List <GMapAddressType> Create(int idGMapAddress, List <GMapTypeDto> gMapTypes)
        {
            List <GMapAddressType> gMapAddressTypes = new List <GMapAddressType>();

            foreach (var gMapType in gMapTypes)
            {
                var gMapAddressType = new GMapAddressType
                {
                    IdGMapAddress = idGMapAddress,
                    IdGMapType    = gMapType.Id
                };
                gMapAddressTypes.Add(Create(gMapAddressType));
            }

            return(gMapAddressTypes);
        }
Пример #2
0
 public GMapAddressType Create(GMapAddressType gMapAddressType)
 {
     return(_gMapAddressTypeRepository.Create(gMapAddressType));
 }