Example #1
0
        public async Task <IActionResult> DeleteCustomer(int id)
        {
            _logger.LogInformation($"Customer delete called with id :{id}");
            var status = await _repository.DeleteCustomerAsync(id);

            return(status ? (IActionResult)Ok() : NotFound());
        }