public async Task <IActionResult> DeleteCustomerDataByID(int id) { _orm.OpenConn(); if (!await _orm.CustomerExist(id)) { return(NotFound()); } await _orm.DeleteCustomerData(id); await _orm.CloseConn(); return(NoContent()); }