예제 #1
0
        public IActionResult Addresses([FromBody] Bukimedia.PrestaSharp.Entities.address address)
        {
            try
            {
                // minumum requirement saglanmiyorsa catch'e dusecek
                _addressFactory.Add(address);
            }
            catch (Exception exception)
            {
                return(BadRequest());
            }

            return(Ok());
        }
예제 #2
0
 public IActionResult NumberOfAddresses([FromBody] Bukimedia.PrestaSharp.Entities.address address)
 {
     _adressfactory.Add(address);
     return(Ok(address));
 }