コード例 #1
0
        public IActionResult AddCustomer(Customer newCustomer)
        {
            var insertedCustomer = _user.AddNew(newCustomer);

            return(insertedCustomer == default(Customer)
                ? BadRequest() as IActionResult
                : Ok(insertedCustomer));
        }