public IActionResult DeleteCashier(int id) { var cashier = _cashierRepository.FindCashierById(id); if (cashier == null) { return(NotFound()); } _cashierRepository.DeleteCashier(cashier); return(Ok()); }