Пример #1
0
        public Task CreateStoreAsync(string name, string address, string phone, string photoUrl, string lat, string lng, CancellationToken ct = default(CancellationToken))
        {
            var store = new Store()
            {
                Id = DateTime.Now.ToString("yyyyMMddHHmmss"),
                Name = name,
                Address = address,
                Phone = phone,
                PhotoUrl = photoUrl,
                Lat = lat,
                Lng = lng
            };

            return CreateStoreAsync(store, ct);
        }
Пример #2
0
 public Task CreateStoreAsync(Store store, CancellationToken ct = default(CancellationToken))
 {
     return _bootcampService.PostAsync("stores", store, ct);
 }