public IActionResult List() { var organizationTypes = _organizationTypeService.GetAll(); var organizationTypeViewModels = organizationTypes.Select(o => _organizationTypeModelBuilder.BuildNew(o)); return(Ok(organizationTypeViewModels)); }
public IActionResult Get() { var response = organizationTypeService.GetAll(); return(Ok(response)); }