public IList <PermissionsDto> Fetch() { return(_permissionsRepository.All()?.Select(_ => new PermissionsDto { Id = _.Id, Name = _.Name, ParentId = _.ParentId })?.ToList()); }
public IList <PermissionsDto> Fetch() { return(_permissionsRepository.All()?.Select(_ => new PermissionsDto { Id = _.Id, Name = _.Name, ParentId = _.ParentId })?.ToList()); }