Пример #1
0
        public async Task <IActionResult> DeleteCustomerByID(int id)
        {
            _orm.OpenConn();
            if (!await _orm.CustomerExist(id))
            {
                return(NotFound());
            }
            await _orm.DeleteCustomer(id);

            await _orm.CloseConn();

            return(NoContent());
        }