Пример #1
0
 public Address(StateCityZip stateCityZip, StreetAddress streetAddress)
 {
     StateCityZip  = stateCityZip;
     StreetAddress = streetAddress;
 }
Пример #2
0
        public async Task <ActionResult <StateCityZip> > Post(StateCityZip resource)
        {
            var saved = await _repository.AddAsync(resource);

            return(CreatedAtAction(nameof(Get), new { id = saved.GetKey() }, saved));
        }