コード例 #1
0
        public IActionResult GetOfficeById(int id)
        {
            var exists = _branchOfficeService.OfficeExists(id);

            if (exists)
            {
                var office = _branchOfficeService.GetById(id);
                return(Ok(office));
            }
            else
            {
                return(NotFound());
            }
        }