public IActionResult GetById(int id) { var Consumer = service.FindById(id); if (Consumer == null) { return(NotFound()); } return(Ok(Consumer)); }