Beispiel #1
0
        public async Task AddNewEstablishment(string id, string businessName, string latitude, string longitude)
        {
            var result = await _establishmentRepository.Get(id);

            if (result == null)
            {
                result = new Models.Establishment
                {
                    Id           = id,
                    BusinessName = businessName,
                    Latitude     = latitude,
                    Longitude    = longitude
                };

                await _establishmentRepository.AddEstablishment(result);
            }
        }