Beispiel #1
0
        public IActionResult Get(int Id)
        {
            var orgUnit = _organizationUnitProvider.Get(Id);

            if (orgUnit == null)
            {
                return(NotFound("Organization unit not found."));
            }

            return(Ok(orgUnit));
        }
Beispiel #2
0
 public GetOrganizationUnitOutput GetUnit(int id)
 {
     return(_orgUnitService.Get(id));
 }