public virtual async Task DeleteAsync(Guid id) { var origanizationUnit = await OrganizationUnitRepository.FindAsync(id); if (origanizationUnit == null) { return; } await OrganizationUnitManager.DeleteAsync(id); }
public virtual async Task <OrganizationUnitDto> GetAsync(Guid id) { var origanizationUnit = await OrganizationUnitRepository.FindAsync(id); return(ObjectMapper.Map <OrganizationUnit, OrganizationUnitDto>(origanizationUnit)); }