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