コード例 #1
0
        public ActionResult DeleteCustomerAccount(Guid companyId, Guid customerAccountId)
        {
            var customerAccountFromRepo = _customerAccountRepository.GetCustomerAccount(companyId, customerAccountId);

            if (customerAccountFromRepo == null)
            {
                return(NotFound());
            }

            _customerAccountRepository.DeleteCustomerAccount(customerAccountFromRepo);

            _customerAccountRepository.Save();

            return(NoContent());
        }